Skip to content

Commit

Permalink
feat(editor): Temporarily disable AI error helper (#9329)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed May 8, 2024
1 parent 0ee4b6c commit 35b983b
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions packages/editor-ui/src/components/Error/NodeErrorView.vue
Expand Up @@ -45,16 +45,6 @@ const isLoadingErrorDebugging = ref(false);
const errorDebuggingMessage = ref('');
const errorDebuggingFeedback = ref<'positive' | 'negative' | undefined>();
const isErrorDebuggingEnabled = computed(() => {
return aiStore.isErrorDebuggingEnabled;
});
const showErrorDebuggingButton = computed(() => {
return (
isErrorDebuggingEnabled.value && !(isLoadingErrorDebugging.value || errorDebuggingMessage.value)
);
});
const displayCause = computed(() => {
return JSON.stringify(props.error.cause).length < MAX_DISPLAY_DATA_SIZE;
});
Expand Down Expand Up @@ -428,17 +418,9 @@ function copySuccess() {
<div class="node-error-view">
<div class="node-error-view__header">
<div class="node-error-view__header-message">
<div :class="showErrorDebuggingButton ? 'mt-4xs' : ''">
<div>
{{ getErrorMessage() }}
</div>
<N8nButton
v-if="showErrorDebuggingButton"
type="tertiary"
size="small"
@click="onDebugError"
>
{{ i18n.baseText('nodeErrorView.debugError.button') }}
</N8nButton>
</div>
<div
v-if="error.description || error.context?.descriptionKey"
Expand Down

0 comments on commit 35b983b

Please sign in to comment.