WIP - Added pagination for list view

This commit is contained in:
Francisco Gaona
2026-01-13 09:03:11 +01:00
parent 730fddd181
commit 47fa72451d
9 changed files with 357 additions and 22 deletions

View File

@@ -78,7 +78,9 @@ const fetchRecords = async () => {
try {
const endpoint = `${props.baseUrl}/${relationObject.value}/records`
const response = await api.get(endpoint)
records.value = response || []
records.value = Array.isArray(response)
? response
: response?.data || response?.records || []
// If we have a modelValue, find the selected record
if (props.modelValue) {