15781: Allows multi-value properties on the search bar/editor.
[arvados-workbench2.git] / src / views-components / search-bar / search-bar-advanced-properties-view.tsx
index eb049b7625262dfe5caee013d21681f8df3bc0ae..8add4b025b4dfb29e7f8a957287bf91a442360f1 100644 (file)
@@ -67,7 +67,7 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({
     setProp: (propertyValue: PropertyValue, properties: PropertyValue[]) => {
         dispatch<any>(changeAdvancedFormProperty(
             'properties',
-            [...properties.filter(e => e.keyID! !== propertyValue.keyID!), propertyValue]
+            [...properties, propertyValue]
         ));
         dispatch<any>(resetAdvancedFormProperty('key'));
         dispatch<any>(resetAdvancedFormProperty('value'));