Revert unnecessary changes
This commit is contained in:
parent
cfcda49c80
commit
1ec9acc855
|
@ -60,16 +60,12 @@
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
$: componentOptions = components.map(component => {
|
$: componentOptions = components.map(table => ({
|
||||||
let value = component._id
|
label: table._instanceName,
|
||||||
if (component._component.endsWith("/tableblock")) {
|
value: table._component.endsWith("/tableblock")
|
||||||
value = `${component._id}-table`
|
? `${table._id}-table`
|
||||||
}
|
: table._id,
|
||||||
return {
|
}))
|
||||||
label: component._instanceName,
|
|
||||||
value,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
$: selectedTableId = parameters.tableComponentId?.includes("-")
|
$: selectedTableId = parameters.tableComponentId?.includes("-")
|
||||||
? parameters.tableComponentId.split("-")[0]
|
? parameters.tableComponentId.split("-")[0]
|
||||||
: parameters.tableComponentId
|
: parameters.tableComponentId
|
||||||
|
|
Loading…
Reference in New Issue