Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Nov 25, 2024
1 parent 9ad13cd commit f002180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit f002180

Please sign in to comment.