From 2e3c2c242487459e98f819c44d9c7138210672b2 Mon Sep 17 00:00:00 2001 From: James Graham Date: Mon, 19 Dec 2022 16:00:41 +0000 Subject: [PATCH] Fix roompage sectionBanner visible check change check to `messageListView.sectionBannerItem != undefined` so that the command line isn't spammed with qrc:/RoomPage.qml:263:13: Unable to assign [undefined] to bool --- src/qml/Page/RoomPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/Page/RoomPage.qml b/src/qml/Page/RoomPage.qml index f0a047fdb..86e3f79f1 100644 --- a/src/qml/Page/RoomPage.qml +++ b/src/qml/Page/RoomPage.qml @@ -260,7 +260,7 @@ Kirigami.ScrollablePage { maxWidth: messageListView.sectionBannerItem ? messageListView.sectionBannerItem.width - Kirigami.Units.largeSpacing * 2 : 0 z: 3 - visible: messageListView.sectionBannerItem && messageListView.sectionBannerItem.ListView.section != "" + visible: messageListView.sectionBannerItem != undefined && messageListView.sectionBannerItem.ListView.section != "" labelText: messageListView.sectionBannerItem ? messageListView.sectionBannerItem.ListView.section : "" } footerPositioning: ListView.OverlayHeader