simplify code

This commit is contained in:
Tom
2022-05-10 13:29:24 +02:00
parent 11bd48a1b5
commit 81e0c6dcc2

View File

@@ -408,14 +408,9 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
isNewSceneVersion() {
const sceneVersion = this.getSceneVersion();
if (
this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update
|| this.currentSceneVersion !== sceneVersion
) {
return true;
} else {
return false;
}
return this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update
|| this.currentSceneVersion !== sceneVersion // ensure scene changed
;
}
getSceneVersion() {