From 55de01024d81c3bd82833f04a26eafd102c8c1cd Mon Sep 17 00:00:00 2001
From: Burak Hancerli <burak.hancerli@qt.io>
Date: Thu, 22 Feb 2024 09:50:22 +0100
Subject: [PATCH] chore: update components and fix a small issue while fetching
 demo list

---
 qtquickdesigner-components | 2 +-
 www/scripts/script.js      | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/qtquickdesigner-components b/qtquickdesigner-components
index 5972175..5f115ed 160000
--- a/qtquickdesigner-components
+++ b/qtquickdesigner-components
@@ -1 +1 @@
-Subproject commit 59721758afe9d7034ca76f1a19c3c5c97610ceaa
+Subproject commit 5f115ed120adb58972ac3a0a2b80ec42cf3769a1
diff --git a/www/scripts/script.js b/www/scripts/script.js
index 4f3e9e6..21c438b 100644
--- a/www/scripts/script.js
+++ b/www/scripts/script.js
@@ -118,7 +118,8 @@ function listExamples() {
     request.responseType = "json";
     request.onload = function (oEvent) {
         var json = request.response;
-        if (json.length > 0) {
+        // check if json is not null
+        if (json !== null && json.length > 0) {
             var projectsmenulist = document.querySelector("#projectsmenulist");
             for (project in json) {
                 var li = document.createElement("li");
-- 
GitLab