Revert unnecessary changes

This commit is contained in:
Andrew Kingston 2024-04-08 16:46:05 +01:00
parent cfcda49c80
commit 1ec9acc855
1 changed files with 6 additions and 10 deletions

View File

@ -60,16 +60,12 @@
)
}
)
$: componentOptions = components.map(component => {
let value = component._id
if (component._component.endsWith("/tableblock")) {
value = `${component._id}-table`
}
return {
label: component._instanceName,
value,
}
})
$: componentOptions = components.map(table => ({
label: table._instanceName,
value: table._component.endsWith("/tableblock")
? `${table._id}-table`
: table._id,
}))
$: selectedTableId = parameters.tableComponentId?.includes("-")
? parameters.tableComponentId.split("-")[0]
: parameters.tableComponentId