From 95a69d81048b5a8eb4f139f05c5db27c86a73457 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 14 Dec 2023 06:15:46 +0000 Subject: [PATCH] fix: use ids in code snippet api url --- packages/nc-gui/components/smartsheet/ApiSnippet.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/ApiSnippet.vue b/packages/nc-gui/components/smartsheet/ApiSnippet.vue index ea776cf76b..7c0ad8ff08 100644 --- a/packages/nc-gui/components/smartsheet/ApiSnippet.vue +++ b/packages/nc-gui/components/smartsheet/ApiSnippet.vue @@ -84,7 +84,7 @@ const selectedLangName = ref(langs[0].name) const apiUrl = computed( () => new URL( - `/api/v1/db/data/noco/${base.value.id}/${meta.value?.title}/views/${view.value?.title}`, + `/api/v1/db/data/noco/${base.value.id}/${meta.value?.id}/views/${view.value?.id}`, (appInfo.value && appInfo.value.ncSiteUrl) || '/', ).href, )