Don't show row test data selector outside of test modal.

This commit is contained in:
Sam Rose 2025-03-11 17:08:16 +00:00
parent 623effe27c
commit e142d2cc81
No known key found for this signature in database
1 changed files with 50 additions and 43 deletions

View File

@ -387,33 +387,11 @@
]
}
stepLayouts[block.stepId] = {
row: {
schema: schema["row"],
//?layout: RowLayoutStepComponent.
content: [
{
type: TableSelector,
title: "Table",
props: {
isTrigger,
value: inputData["row"]?.tableId ?? "",
onChange: e => {
const rowKey = $stepStore?.[block.id]?.rowType || "row"
onChange({
_tableId: e.detail,
meta: {},
[rowKey]: e.detail
? {
tableId: e.detail,
const getTestDataSelector = () => {
if (!isTestModal) {
return []
}
: {},
})
},
disabled: isTestModal,
},
},
{
return [{
type: CoreSelect,
title: "Row",
props: {
@ -455,7 +433,36 @@
props: {
noMargin: true,
},
}]
}
stepLayouts[block.stepId] = {
row: {
schema: schema["row"],
//?layout: RowLayoutStepComponent.
content: [
{
type: TableSelector,
title: "Table",
props: {
isTrigger,
value: inputData["row"]?.tableId ?? "",
onChange: e => {
const rowKey = $stepStore?.[block.id]?.rowType || "row"
onChange({
_tableId: e.detail,
meta: {},
[rowKey]: e.detail
? {
tableId: e.detail,
}
: {},
})
},
disabled: isTestModal,
},
},
...getTestDataSelector(),
...getIdConfig(),
...getRevConfig(),
...getRowTypeConfig(),