π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(Sentry TypeError): g.filter is not a function
Ramesh Mane3e8a6cd5a351
diff --git a/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vue b/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vueindex 9a604f4360..2dcbb3b4d9 100644--- a/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vue+++ b/packages/nc-gui/components/smartsheet/expanded-form/Sidebar/AuditMiniItem.vue@@ -1,5 +1,5 @@<script setup lang="ts">-import { type AttachmentType, type AuditType, checkboxIconListMap, ratingIconListMap } from 'nocodb-sdk'+import { type AttachmentType, type AuditType, checkboxIconListMap, parseHelper, ratingIconListMap } from 'nocodb-sdk'const props = defineProps<{audit: AuditType@@ -68,7 +68,10 @@ function processOldDataFor(key: string) {const ndata = newData.value[key]if (meta.value?.[key]?.type === 'Attachment') {- return odata?.filter((it: AttachmentType) => !ndata?.some((t: AttachmentType) => t.title === it.title))+ // Attachment cell value can be string so we have to parse it+ return parseHelper(odata)?.filter(+ (it: AttachmentType) => !parseHelper(ndata)?.some((t: AttachmentType) => t.title === it.title),+ )}if (meta.value?.[key]?.type === 'MultiSelect') {return odata?.filter?.((it: string) => !ndata?.includes?.(it)) ?? odatadiff --git a/packages/nc-gui/components/smartsheet/expanded-form/presentors/Discussion/AuditInfoExpressive.vue b/packages/nc-gui/components/smartsheet/expanded-form/presentors/Discussion/AuditInfoExpressive.vueindex 6cbb397d54..51ece52925 100644--- a/packages/nc-gui/components/smartsheet/expanded-form/presentors/Discussion/AuditInfoExpressive.vue+++ b/packages/nc-gui/components/smartsheet/expanded-form/presentors/Discussion/AuditInfoExpressive.vue@@ -1,6 +1,6 @@<script setup lang="ts">import type { AttachmentType, AuditType } from 'nocodb-sdk'-import { checkboxIconListMap, ratingIconListMap } from 'nocodb-sdk'+import { checkboxIconListMap, parseHelper, ratingIconListMap } from 'nocodb-sdk'/* interface */@@ -71,7 +71,10 @@ function processOldDataFor(key: string) {const ndata = newData.value[key]if (meta.value?.[key]?.type === 'Attachment') {- return odata?.filter((it: AttachmentType) => !ndata?.some((t: AttachmentType) => t.title === it.title))+ // Attachment cell value can be string so we have to parse it+ return parseHelper(odata)?.filter(+ (it: AttachmentType) => !parseHelper(ndata)?.some((t: AttachmentType) => t.title === it.title),+ )}if (meta.value?.[key]?.type === 'MultiSelect') {return odata?.filter?.((it: string) => !ndata?.includes?.(it)) ?? odata