Can mutate blocks in readOnly workspace #7557
Labels
good first issue
issue: bug
Describes why the code or behaviour is wrong
size: small
Bugs that can be picked up and completed in 1-3 days
Check for duplicates
Description
If there is a block with mutator in a
readOnly
workspace, I can click on the mutator icon, open the mutator bubble and change the block that way. I think the icon used to just be disabled pre-v10?Reproduction steps
npm run start
and switch to theAdvanced playground
link.if
blockreadOnly
option and reload.else
andifelse
rows to theif
block.Stack trace
No response
Screenshots
Browsers
Chrome desktop
To Fix
onClick
method of theMutatorIcon
to return early ifthis.sourceBlock.isEditable()
isfalse
.The text was updated successfully, but these errors were encountered: