From 4841e8fb9c7f293936e1311ec1ec9a69cdade0ef Mon Sep 17 00:00:00 2001 From: Sam Firke Date: Mon, 20 Jun 2022 11:49:45 -0400 Subject: [PATCH] style(typo): occured -> occurred (#20116) * Occured -> Occurred * Occured -> Occurred * Occured -> Occurred * Occured - > Occurred * Update FallbackComponent.tsx * Update FallbackComponent.tsx Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com> (cherry picked from commit b7eb23544077aa867bb17694e8a050b868e3b9a2) --- .../superset-ui-core/src/chart/components/FallbackComponent.tsx | 2 +- .../superset-ui-core/test/chart/components/SuperChart.test.tsx | 2 +- superset-frontend/src/dashboard/actions/dashboardState.js | 2 +- superset/translations/nl/LC_MESSAGES/messages.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx b/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx index f7a360de25abc..5c22f920824e8 100644 --- a/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx +++ b/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx @@ -41,7 +41,7 @@ export default function FallbackComponent({ >
- Oops! An error occured! + Oops! An error occurred!
{error ? error.toString() : 'Unknown Error'}
diff --git a/superset-frontend/packages/superset-ui-core/test/chart/components/SuperChart.test.tsx b/superset-frontend/packages/superset-ui-core/test/chart/components/SuperChart.test.tsx index 2b24df3aeedf0..2233250f68ef4 100644 --- a/superset-frontend/packages/superset-ui-core/test/chart/components/SuperChart.test.tsx +++ b/superset-frontend/packages/superset-ui-core/test/chart/components/SuperChart.test.tsx @@ -121,7 +121,7 @@ describe('SuperChart', () => { ); await new Promise(resolve => setImmediate(resolve)); wrapper.update(); - expect(wrapper.text()).toContain('Oops! An error occured!'); + expect(wrapper.text()).toContain('Oops! An error occurred!'); }); it('renders custom FallbackComponent', () => { expectedErrors = 1; diff --git a/superset-frontend/src/dashboard/actions/dashboardState.js b/superset-frontend/src/dashboard/actions/dashboardState.js index 053aa2f15fd49..f96b3ebadf28b 100644 --- a/superset-frontend/src/dashboard/actions/dashboardState.js +++ b/superset-frontend/src/dashboard/actions/dashboardState.js @@ -325,7 +325,7 @@ export function saveDashboardRequest(data, id, saveType) { const onError = async response => { const { error, message } = await getClientErrorObject(response); - let errorText = t('Sorry, an unknown error occured'); + let errorText = t('Sorry, an unknown error occurred'); if (error) { errorText = t( diff --git a/superset/translations/nl/LC_MESSAGES/messages.json b/superset/translations/nl/LC_MESSAGES/messages.json index 699eb84297d9d..f69b2dce23bb2 100644 --- a/superset/translations/nl/LC_MESSAGES/messages.json +++ b/superset/translations/nl/LC_MESSAGES/messages.json @@ -3478,7 +3478,7 @@ "This dashboard was saved successfully.": [ "Dit dashboard is succesvol opgeslagen." ], - "Sorry, an unknown error occured": [""], + "Sorry, an unknown error occurred": [""], "Sorry, there was an error saving this dashboard: %s": [""], "You do not have permission to edit this dashboard": [ "U hebt geen toestemming om dit dashboard te bewerken"