Skip to content

Commit

Permalink
remove intl errors from selected context
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jan 14, 2025
1 parent bbceb4d commit 8eb3b53
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
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 @@ const generateLayer = (props, map, leaflet) => {
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 @@ -39,6 +39,7 @@ const TaskFeatureLayer = props => {
<IntlProvider key={props.intl.locale}
locale={props.intl.locale}
messages={props.intl.messages}
onError={() => {}} // Suppress errors in the console

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L42 was not covered by tests
textComponent="span"
>
<PropertyList featureProperties={featureProperties} onBack={onBack} />
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 @@ -139,6 +139,7 @@ export const TaskMapContent = (props) => {
key={`${description}-${index}`}
locale={props.intl.locale}
messages={props.intl.messages}
onError={() => {}} // Suppress errors in the console

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L142 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 @@ -60,6 +60,7 @@ const ConnectedIntl = WithUserLocale(props => (
key={props.locale}
locale={props.locale}
messages={props.messages}
onError={() => {}} // Suppress errors in the console

Check warning on line 63 in src/index.jsx

View check run for this annotation

Codecov / codecov/patch

src/index.jsx#L63

Added line #L63 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 @@ -41,7 +41,7 @@ global.withProvider = (
return (
<Fragment>
<Provider store={store}>
<IntlProvider locale="en">
<IntlProvider locale="en" onError={() => {}}>
<Router history={routerHistory}>{children}</Router>
</IntlProvider>
</Provider>
Expand Down

0 comments on commit 8eb3b53

Please sign in to comment.