Code formatting

This commit is contained in:
Francisco Gaona
2025-11-25 23:17:54 +01:00
parent 98a7edc665
commit a6f1da28b2
101 changed files with 6508 additions and 473 deletions

View File

@@ -47,13 +47,15 @@ const objectApiName = ref('')
const fetchRecord = async () => {
try {
loading.value = true
// First get page metadata to know which object this is
const page = await api.get(`/runtime/apps/${appSlug.value}/pages/${pageSlug.value}`)
objectApiName.value = page.objectApiName
// Then fetch the record
record.value = await api.get(`/runtime/objects/${objectApiName.value}/records/${recordId.value}`)
record.value = await api.get(
`/runtime/objects/${objectApiName.value}/records/${recordId.value}`
)
} catch (e: any) {
error.value = e.message
} finally {