From 3016e9362cf1408dffd0f3b0b2b7d4d6a9fc5586 Mon Sep 17 00:00:00 2001 From: uclaros Date: Fri, 17 May 2024 15:36:46 +0300 Subject: [PATCH] create a copy array of selected values --- app/qml/components/MMListMultiselectDrawer.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/qml/components/MMListMultiselectDrawer.qml b/app/qml/components/MMListMultiselectDrawer.qml index 25e7ad656..1be82c412 100644 --- a/app/qml/components/MMListMultiselectDrawer.qml +++ b/app/qml/components/MMListMultiselectDrawer.qml @@ -147,6 +147,7 @@ MMDrawer { function addOrRemoveSelected( val ) { if ( root.selected.indexOf( val ) === -1 ) { root.selected.push( val ) + root.selected = root.selected.slice() } else { root.selected = root.selected.filter( ( x ) => x !== val )