Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(editor): Temporarily disable AI error helper #9329

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions packages/editor-ui/src/components/Error/NodeErrorView.vue
Original file line number Diff line number Diff line change
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
Loading