Skip to content

Commit

Permalink
Avoid updating the field again for the event source block
Browse files Browse the repository at this point in the history
Resolves #58

Signed-off-by: Songlin Jiang <songlin.jiang@csc.fi>
  • Loading branch information
HollowMan6 committed Jun 14, 2024
1 parent 230e9f6 commit 5bad049
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ export class Multiselect {
// Update the fields to the same value for
// the selected blocks with same type.
this.blockSelection_.forEach((id) => {
if (id === e.blockId) {
return;
}
const block = this.workspace_.getBlockById(id);
if (block.type === blockType) {
block.setFieldValue(e.newValue, e.name);
Expand Down

0 comments on commit 5bad049

Please # to comment.