show all of the scripts via a button (#3295)

This commit is contained in:
Jonathan Dobson
2025-08-25 10:25:23 -04:00
committed by GitHub
parent cb340893f4
commit b1f6f013f1
3 changed files with 35 additions and 43 deletions

View File

@@ -95,15 +95,13 @@ function BlockCodeEditor({
<div className="absolute right-[-0.5rem] top-0 flex h-[2rem] w-[2rem] items-center justify-center rounded hover:bg-slate-800">
<ExitIcon
onClick={() => {
if (onExit) {
const result = onExit();
const result = onExit ? onExit() : true;
if (result !== false) {
toggleScriptForNodeCallback({
label: blockLabel,
show: false,
});
}
if (result !== false) {
toggleScriptForNodeCallback({
label: blockLabel,
show: false,
});
}
}}
className="size-5 cursor-pointer"