fix: don't update locked items

This commit is contained in:
therealrinku 2024-04-06 16:21:34 +05:45
parent 32df5502ae
commit 9c76ab46f2
1 changed files with 3 additions and 2 deletions

View File

@ -113,8 +113,9 @@ export const changeProperty = (
return elements.map((element) => {
if (
selectedElementIds.get(element.id) ||
element.id === appState.editingElement?.id
(selectedElementIds.get(element.id) ||
element.id === appState.editingElement?.id)
&& !element.locked
) {
return callback(element);
}