Browse Source
Merge pull request #4838 from mslourens/data_source_modal_error_handling
show correct error and keep modal open
master
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
packages/builder/src/components/backend/DatasourceNavigator/modals/DatasourceConfigModal.svelte
|
|
@ -20,7 +20,9 @@ |
|
|
$goto(`./datasource/${resp._id}`) |
|
|
$goto(`./datasource/${resp._id}`) |
|
|
notifications.success(`Datasource updated successfully.`) |
|
|
notifications.success(`Datasource updated successfully.`) |
|
|
} catch (err) { |
|
|
} catch (err) { |
|
|
notifications.error("Error saving datasource") |
|
|
notifications.error(err?.message ?? "Error saving datasource") |
|
|
|
|
|
// prevent the modal from closing |
|
|
|
|
|
return false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|