Skip to content

Commit a167367

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ 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)) {
121-
return
122-
}
123120
if (!runThisBlock) {
124121
runThisBlock = block
125122
}
123+
if (!isNonScalarPdlBlock(block) || !isNonScalarPdlBlock(runThisBlock)) {
124+
return
125+
}
126126

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

0 commit comments

Comments
 (0)