From 3c21a435928b34cbcc6e261897855998555ab73a Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Mon, 22 Oct 2018 13:34:43 +0200 Subject: [PATCH 1/1] refs #14356-it-is-possible-to-save-a-search-query-without-the-key-value-or-both Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- .../search-bar-advanced-properties-view.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views-components/search-bar/search-bar-advanced-properties-view.tsx b/src/views-components/search-bar/search-bar-advanced-properties-view.tsx index 01fc6a1ad9..0384de223d 100644 --- a/src/views-components/search-bar/search-bar-advanced-properties-view.tsx +++ b/src/views-components/search-bar/search-bar-advanced-properties-view.tsx @@ -8,10 +8,10 @@ import { connect } from 'react-redux'; import { InjectedFormProps, formValueSelector } from 'redux-form'; import { Grid, withStyles, StyleRulesCallback, WithStyles, Button } from '@material-ui/core'; import { RootState } from '~/store/store'; -import { - SEARCH_BAR_ADVANCE_FORM_NAME, - changeAdvanceFormProperty, - updateAdvanceFormProperties +import { + SEARCH_BAR_ADVANCE_FORM_NAME, + changeAdvanceFormProperty, + updateAdvanceFormProperties } from '~/store/search-bar/search-bar-actions'; import { PropertyValues } from '~/models/search-bar'; import { ArvadosTheme } from '~/common/custom-theme'; @@ -45,8 +45,8 @@ interface SearchBarAdvancedPropertiesViewActionProps { getAllFields: (propertyValues: PropertyValues[]) => PropertyValues[] | []; } -type SearchBarAdvancedPropertiesViewProps = SearchBarAdvancedPropertiesViewDataProps - & SearchBarAdvancedPropertiesViewActionProps +type SearchBarAdvancedPropertiesViewProps = SearchBarAdvancedPropertiesViewDataProps + & SearchBarAdvancedPropertiesViewActionProps & InjectedFormProps & WithStyles; const selector = formValueSelector(SEARCH_BAR_ADVANCE_FORM_NAME); @@ -85,15 +85,16 @@ export const SearchBarAdvancedPropertiesView = connect(mapStateToProps, mapDispa - `${field.key}: ${field.value}`} /> -- 2.30.2