Skip to content

Commit

Permalink
Use update boolean instead of hard set 'true' in modelsource submitModel
Browse files Browse the repository at this point in the history
  • Loading branch information
jbicker authored and spoenemann committed Jun 19, 2024
1 parent a91aa6f commit 9aa2083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sprotty/src/model-source/local-model-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class LocalModelSource extends ModelSource {
if (this.viewerOptions.needsClientLayout) {
const computedBounds = await this.actionDispatcher.request<ComputedBoundsAction>(RequestBoundsAction.create(newRoot));
const index = this.computedBoundsApplicator.apply(this.currentRoot, computedBounds);
await this.doSubmitModel(newRoot, true, cause, index);
await this.doSubmitModel(newRoot, update, cause, index);
} else {
await this.doSubmitModel(newRoot, update, cause);
}
Expand Down

0 comments on commit 9aa2083

Please sign in to comment.