Skip to content

Commit 6cedb09

Browse files
committed
fix: top-level Run ui button does nothing
Signed-off-by: Nick Mitchell <[email protected]>
1 parent c013c63 commit 6cedb09

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pdl-live-react/src/view/masonry/MasonryCombo.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,14 @@ export default function MasonryCombo({ value, setValue }: Props) {
117117
// special form of setModalContent for running a PDL program
118118
const run = useCallback<Runner>(
119119
async (runThisBlock, async = false, update) => {
120-
if (!isNonScalarPdlBlock(block) || !isNonScalarPdlBlock(runThisBlock)) {
120+
if (!isNonScalarPdlBlock(block)) {
121121
return
122-
}
123-
if (!runThisBlock) {
122+
} else if (!runThisBlock) {
124123
runThisBlock = block
125124
}
125+
if (!isNonScalarPdlBlock(runThisBlock)) {
126+
return
127+
}
126128

127129
const [cmd, input, output] = (await invoke("replay_prep", {
128130
trace: JSON.stringify(runThisBlock, (k, v) =>

0 commit comments

Comments
 (0)