diff --git a/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml b/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml index a192c80e1..6c7e27a76 100644 --- a/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml +++ b/app/qml/filters/components/MMFilterDropdownValueRelationInput.qml @@ -109,8 +109,12 @@ Column { Component.onCompleted: { if ( root.currentValue ) { - // preselect choices if any are set - selected = root.currentValue + // preselect choices if any are set; convert numeric strings to numbers + // so they match the model's numeric keys (fixes AllowMulti filter returning 0 results) + selected = root.currentValue.map( v => { + const n = Number( v ) + return isFinite( n ) && String( n ) === v ? n : v + } ) } open()