Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] Fixed load remote map dialog exception (#2367)

Igor Dykhta89043bd096bd
diff --git a/examples/demo-app/src/components/load-data-modal/load-remote-map.js b/examples/demo-app/src/components/load-data-modal/load-remote-map.js
index 6b93392c3..1b5235533 100644
--- a/examples/demo-app/src/components/load-data-modal/load-remote-map.js
+++ b/examples/demo-app/src/components/load-data-modal/load-remote-map.js
@@ -23,7 +23,7 @@ import React, {Component} from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import {CORS_LINK} from '../../constants/default-settings';
-import {FormattedHTMLMessage, FormattedMessage} from 'react-intl';
+import {FormattedMessage} from 'react-intl';
import {Button} from '@kepler.gl/components';
import {validateUrl} from '../../utils/url';
@@ -91,6 +91,8 @@ const Error = ({error, url}) => (
</StyledError>
);
+const CORS_LINK_MESSAGE = {corsLink: CORS_LINK};
+
class LoadRemoteMap extends Component {
state = {
dataUrl: '',
@@ -138,7 +140,7 @@ class LoadRemoteMap extends Component {
</StyledInputLabel>
<StyledInputLabel>
<FormattedMessage id={'loadRemoteMap.cors'} />{' '}
- <FormattedHTMLMessage id={'loadRemoteMap.clickHere'} values={{corsLink: CORS_LINK}} />
+ <FormattedMessage id={'loadRemoteMap.clickHere'} values={CORS_LINK_MESSAGE} />
</StyledInputLabel>
<StyledFromGroup>
<StyledInput