mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-10 11:51:36 +08:00
simplify code
This commit is contained in:
parent
11bd48a1b5
commit
81e0c6dcc2
@ -408,14 +408,9 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
|
|||||||
isNewSceneVersion() {
|
isNewSceneVersion() {
|
||||||
const sceneVersion = this.getSceneVersion();
|
const sceneVersion = this.getSceneVersion();
|
||||||
|
|
||||||
if (
|
return this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update
|
||||||
this.currentSceneVersion === this.SCENE_VERSION_INITIAL // initial scene version update
|
|| this.currentSceneVersion !== sceneVersion // ensure scene changed
|
||||||
|| this.currentSceneVersion !== sceneVersion
|
;
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getSceneVersion() {
|
getSceneVersion() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user