Browse Source

fix: use ids in code snippet api url

pull/7230/head
Pranav C 1 year ago
parent
commit
95a69d8104
  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