File tree Expand file tree Collapse file tree
meta_configurator/src/components/toolbar/dialogs/data-mapping Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {useSettings} from '@/settings/useSettings';
1919import {useDebounceFn } from ' @vueuse/core' ;
2020import ApiKeyWarning from ' @/components/panels/ai-prompts/ApiKeyWarning.vue' ;
2121import PanelSettings from ' @/components/panels/shared-components/PanelSettings.vue' ;
22+ import {useErrorService } from ' @/utility/errorServiceInstance' ;
2223
2324const showDialog = ref (false );
2425const editor_id = ' data-mapping-' + Math .random ();
@@ -163,8 +164,13 @@ function generateMappingSuggestion() {
163164 statusMessage .value = ' ' ;
164165 errorMessage .value = res .message ;
165166 }
166- isLoadingMapping .value = false ;
167167 validateConfig (res .config , input .value );
168+ })
169+ .catch (error => {
170+ useErrorService ().onError (error );
171+ })
172+ .finally (() => {
173+ isLoadingMapping .value = false ;
168174 });
169175}
170176
You can’t perform that action at this time.
0 commit comments