From f002180983233f1aacc59a050d027cc4c726829b Mon Sep 17 00:00:00 2001 From: volterra79 Date: Mon, 25 Nov 2024 14:45:13 +0100 Subject: [PATCH] Clean code --- src/services/gui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/gui.js b/src/services/gui.js index b45fae8cb..e14537bf9 100644 --- a/src/services/gui.js +++ b/src/services/gui.js @@ -886,8 +886,8 @@ export default new (class GUI extends G3WObject { // remove last content from stack async popContent() { - // skip when .. - if (!ApplicationState.viewport.content.contentsdata.length) { + // skip when no content data + if (0 === ApplicationState.viewport.content.contentsdata.length) { return Promise.reject(); }