Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove intl errors from selected context #2520

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/EnhancedMap/OSMDataLayer/OSMDataLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
key={props.intl.locale}
locale={props.intl.locale}
messages={props.intl.messages}
onError={() => {}} // Suppress errors in the console

Check warning on line 43 in src/components/EnhancedMap/OSMDataLayer/OSMDataLayer.jsx

View check run for this annotation

Codecov / codecov/patch

src/components/EnhancedMap/OSMDataLayer/OSMDataLayer.jsx#L43

Added line #L43 was not covered by tests
textComponent="span"
>
<PropertyList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
key={props.intl.locale}
locale={props.intl.locale}
messages={props.intl.messages}
onError={() => {}} // Suppress errors in the console

Check warning on line 43 in src/components/EnhancedMap/TaskFeatureLayer/TaskFeatureLayer.jsx

View check run for this annotation

Codecov / codecov/patch

src/components/EnhancedMap/TaskFeatureLayer/TaskFeatureLayer.jsx#L43

Added line #L43 was not covered by tests
textComponent="span"
>
<PropertyList featureProperties={featureProperties} onBack={onBack} />
Expand All @@ -61,7 +62,11 @@
mrLayerLabel={layerLabel}
data={featureCollection(features)}
pointToLayer={(point, latLng) => {
return L.marker(latLng, { pane, mrLayerLabel: layerLabel, mrLayerId: mrLayerId });
return L.marker(latLng, {
pane,
mrLayerLabel: layerLabel,
mrLayerId: mrLayerId,
});

Check warning on line 69 in src/components/EnhancedMap/TaskFeatureLayer/TaskFeatureLayer.jsx

View check run for this annotation

Codecov / codecov/patch

src/components/EnhancedMap/TaskFeatureLayer/TaskFeatureLayer.jsx#L65-L69

Added lines #L65 - L69 were not covered by tests
}}
onEachFeature={(feature, layer) => {
const styleableFeature = _isFunction(feature.styleLeafletLayer)
Expand Down
1 change: 1 addition & 0 deletions src/components/TaskPane/TaskMap/TaskMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
key={`${description}-${index}`}
locale={props.intl.locale}
messages={props.intl.messages}
onError={() => {}} // Suppress errors in the console

Check warning on line 165 in src/components/TaskPane/TaskMap/TaskMap.jsx

View check run for this annotation

Codecov / codecov/patch

src/components/TaskPane/TaskMap/TaskMap.jsx#L165

Added line #L165 was not covered by tests
textComponent="span"
>
<PropertyList
Expand Down
1 change: 1 addition & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
key={props.locale}
locale={props.locale}
messages={props.messages}
onError={() => {}} // Suppress errors in the console

Check warning on line 60 in src/index.jsx

View check run for this annotation

Codecov / codecov/patch

src/index.jsx#L60

Added line #L60 was not covered by tests
textComponent="span"
>
{props.children}
Expand Down
2 changes: 1 addition & 1 deletion src/setupTests.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ global.withProvider = (ui, { store = reduxStore, ...renderOptions } = {}) => {
return (
<Fragment>
<Provider store={store}>
<IntlProvider locale="en">
<IntlProvider locale="en" onError={() => {}}>
<Router history={routerHistory}>{children}</Router>
</IntlProvider>
</Provider>
Expand Down
Loading