Skip to content

Commit 0753eb2

Browse files
authored
setting the isLoadingMapping to false in the finally block to prevent never-ending wait cursor (#869)
1 parent 683fcf4 commit 0753eb2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

meta_configurator/src/components/toolbar/dialogs/data-mapping/DataMappingDialog.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {useSettings} from '@/settings/useSettings';
1919
import {useDebounceFn} from '@vueuse/core';
2020
import ApiKeyWarning from '@/components/panels/ai-prompts/ApiKeyWarning.vue';
2121
import PanelSettings from '@/components/panels/shared-components/PanelSettings.vue';
22+
import {useErrorService} from '@/utility/errorServiceInstance';
2223
2324
const showDialog = ref(false);
2425
const 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

0 commit comments

Comments
 (0)