π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): ai button preview row display issue
Ramesh Mane1b0267e32e1d
diff --git a/packages/nc-gui/components/nc/List/RecordItem.vue b/packages/nc-gui/components/nc/List/RecordItem.vueindex 3da89d9ac7..03d77813e7 100644--- a/packages/nc-gui/components/nc/List/RecordItem.vue+++ b/packages/nc-gui/components/nc/List/RecordItem.vue@@ -28,6 +28,8 @@ provide(IsUnderLookupInj, ref(true))provide(IsLinkRecordDropdownInj, ref(true))+provide(IsCanvasInjectionInj, false)+const { row: currentRow, columns: allColumns, isSelected, isLoading } = toRefs(props)useProvideSmartsheetRowStore(currentRow)diff --git a/packages/nc-gui/components/smartsheet/column/AiButtonOptions.vue b/packages/nc-gui/components/smartsheet/column/AiButtonOptions.vueindex 54bc11518e..f7504dfeb5 100644--- a/packages/nc-gui/components/smartsheet/column/AiButtonOptions.vue+++ b/packages/nc-gui/components/smartsheet/column/AiButtonOptions.vue@@ -195,7 +195,10 @@ const generate = async () => {)if (res?.length) {- previewOutputRow.value.row = res[0]+ previewOutputRow.value = {+ ...previewOutputRow.value,+ row: res[0],+ }isAlreadyGenerated.value = true}@@ -223,6 +226,7 @@ const expansionOutputPanel = ref<ExpansionPanelKeys[]>([ExpansionPanelKeys.outpu// provide the following to override the default behavior and enable input fields like in formprovide(ActiveCellInj, ref(true))provide(IsFormInj, ref(true))+provide(IsCanvasInjectionInj, false)watch(isOpenConfigModal, (newValue) => {if (newValue) {@@ -813,7 +817,7 @@ onBeforeUnmount(() => {<template v-for="field in outputFieldOptions"><a-form-itemv-if="field.title && outputColumnIds.includes(field.id)"- :key="field.id"+ :key="`${field.id}-${generatingPreview}`":name="field.title"class="!my-0 nc-input-required-error">