Browse Source

fix(gui):disable deep compare since the data could be non-valid json

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4120/head
Pranav C 2 years ago
parent
commit
b868d23a34
  1. 7
      packages/nc-gui/components/webhook/Editor.vue
  2. 4
      packages/nc-gui/composables/useViewData.ts

7
packages/nc-gui/components/webhook/Editor.vue

@ -543,7 +543,12 @@ onMounted(loadPluginList)
<a-col :span="24">
<a-tabs v-model:activeKey="urlTabKey" type="card" closeable="false" class="shadow-sm">
<a-tab-pane key="body" tab="Body">
<LazyMonacoEditor v-model="hook.notification.payload.body" :validate="false" class="min-h-60 max-h-80" />
<LazyMonacoEditor
v-model="hook.notification.payload.body"
disable-deep-compare
:validate="false"
class="min-h-60 max-h-80"
/>
</a-tab-pane>
<a-tab-pane key="params" tab="Params" force-render>

4
packages/nc-gui/composables/useViewData.ts

@ -202,11 +202,11 @@ export function useViewData(
async function insertRow(
currentRow: Row,
rowIndex = formattedData.value?.length,
_rowIndex = formattedData.value?.length,
ltarState: Record<string, any> = {},
{ metaValue = meta.value, viewMetaValue = viewMeta.value }: { metaValue?: TableType; viewMetaValue?: ViewType } = {},
) {
const row = currentRow.row;
const row = currentRow.row
if (currentRow.rowMeta) currentRow.rowMeta.saving = true
try {
const { missingRequiredColumns, insertObj } = await populateInsertObject({

Loading…
Cancel
Save