π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): add comment above watch to know why it is required
Ramesh Maneac4faafd6074
diff --git a/packages/nc-gui/store/views.ts b/packages/nc-gui/store/views.tsindex 0726f67270..ee6988a537 100644--- a/packages/nc-gui/store/views.ts+++ b/packages/nc-gui/store/views.ts@@ -848,10 +848,16 @@ export const useViewsStore = defineStore('viewsStore', () => {},)+ /**+ * Keeps the browser URL slug in sync with the view's readable slug.+ * Triggers only when:+ * - The current browser URL slug is missing, OR+ * - The browser URL slug does not match the view's readable slug.+ */watch([activeViewReadableUrlSlug, activeViewUrlSlug],- ([newactiveViewReadableUrlSlug]) => {- if (!newactiveViewReadableUrlSlug || activeViewUrlSlug.value === newactiveViewReadableUrlSlug) return+ ([newactiveViewReadableUrlSlug, newActiveViewUrlSlug]) => {+ if (!newactiveViewReadableUrlSlug || newActiveViewUrlSlug === newactiveViewReadableUrlSlug) returnconst slugs = (route.value.params.slugs as string[]) || []