Browse Source

fix: use ids in code snippet api url

pull/7218/head
Pranav C 11 months ago committed by Ramesh Mane
parent
commit
d84888d1e0
  1. 2
      packages/nc-gui/components/smartsheet/ApiSnippet.vue

2
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,
)

Loading…
Cancel
Save