π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: ai review changes
Ramesh Mane23ae521ccfff
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vue b/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vueindex c5b166cd28..2afc27aea9 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vue+++ b/packages/nc-gui/components/smartsheet/grid/canvas/components/AddNewRowMenu.vue@@ -30,9 +30,9 @@ const { blockRecordTemplates, showUpgradeToUseRecordTemplates } = useEeConfig()/*** Filter the base-level template list to only show enabled templates* for the current table. The shared `allTemplates` contains templates- * across all tables, so we filter by source_id (table ID).+ * across all tables, so we filter by fk_model_id (table ID).*/-const templates = computed(() => allTemplates.value.filter((t: any) => t.enabled !== false && t.source_id === meta.value?.id))+const templates = computed(() => allTemplates.value.filter((t: any) => t.enabled !== false && t.fk_model_id === meta.value?.id))const { $api } = useNuxtApp()const { getMeta } = useMetas()diff --git a/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.ts b/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.tsindex e4fb54343a..7543176fd7 100644--- a/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.ts+++ b/packages/nocodb/src/meta/migrations/XcMigrationSourcev0.ts@@ -19,7 +19,7 @@ import * as nc_018_add_enabled_to_filter_exp_v2 from './v0/nc_018_add_enabled_toimport * as nc_019_sandboxes from './v0/nc_019_sandboxes';import * as nc_020_add_cell_coloring_fields_to_row_color_conditions from './v0/nc_020_add_cell_coloring_fields_to_row_color_conditions';import * as nc_021_scim_support from './v0/nc_021_scim_support';-import * as nc_021_record_templates from './v0/nc_021_record_templates';+import * as nc_022_record_templates from './v0/nc_022_record_templates';// Create a custom migration source classexport default class XcMigrationSourcev0 {@@ -50,7 +50,7 @@ export default class XcMigrationSourcev0 {'nc_019_sandboxes','nc_020_add_cell_coloring_fields_to_row_color_conditions','nc_021_scim_support',- 'nc_021_record_templates',+ 'nc_022_record_templates',]);}@@ -102,8 +102,8 @@ export default class XcMigrationSourcev0 {return nc_020_add_cell_coloring_fields_to_row_color_conditions;case 'nc_021_scim_support':return nc_021_scim_support;- case 'nc_021_record_templates':- return nc_021_record_templates;+ case 'nc_022_record_templates':+ return nc_022_record_templates;}}}diff --git a/packages/nocodb/src/meta/migrations/v0/nc_021_record_templates.ts b/packages/nocodb/src/meta/migrations/v0/nc_022_record_templates.tssimilarity index 93%rename from packages/nocodb/src/meta/migrations/v0/nc_021_record_templates.tsrename to packages/nocodb/src/meta/migrations/v0/nc_022_record_templates.tsindex c58c774865..5abe74c8f6 100644--- a/packages/nocodb/src/meta/migrations/v0/nc_021_record_templates.ts+++ b/packages/nocodb/src/meta/migrations/v0/nc_022_record_templates.ts@@ -10,7 +10,7 @@ const up = async (knex: Knex) => {table.string('fk_model_id', 20).notNullable().index();table.string('title', 255).notNullable();table.text('description');- table.text('template_data').notNullable();+ table.text('template_data', 'mediumtext').notNullable();table.integer('usage_count').defaultTo(0);table.boolean('enabled').defaultTo(true);table.string('created_by', 20);