aboutsummaryrefslogtreecommitdiff
path: root/features/soopyGui/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/soopyGui/index.js')
-rw-r--r--features/soopyGui/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/soopyGui/index.js b/features/soopyGui/index.js
index 32ac1a7..1d4bc45 100644
--- a/features/soopyGui/index.js
+++ b/features/soopyGui/index.js
@@ -103,7 +103,7 @@ class SoopyGui extends Feature {
this.buttonListElm.children = []
- this.getPages().forEach((p, i) => {
+ if (this.getPages()) this.getPages().forEach((p, i) => {
let settingsButton = new ButtonWithArrow().setText("ยง0" + p.name).setLocation(0, 0.225 * i, 1, 0.2)
settingsButton.addEvent(new SoopyMouseClickEvent().setHandler(() => { this.clickedOpen(p) }))
this.buttonListElm.addChild(settingsButton)