diff --git a/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx b/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx index 1a214d32c..5d76d6be8 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx @@ -11,7 +11,7 @@ const FilterOptionsController = () => { const [configFilter, setConfig] = useState(null); const [listVal, setListValue] = useState([]); const [isValid, setIsValid] = useState(null); - const [checkSort, setCheckSort] = useState(null); + const [checkSort, setCheckSort] = useState(''); useEffect(() => { function onDocumentReady() { @@ -35,8 +35,7 @@ const FilterOptionsController = () => { const onApiFilterOptions= (config) => { setDataFilterCells(config); setConfig(config); - setClearDisable(config); - + setCheckSort((config.asc_getSortState() === Asc.c_oAscSortOptions.Ascending ? 'down' : '') || (config.asc_getSortState() === Asc.c_oAscSortOptions.Descending ? 'up' : '')); diff --git a/apps/spreadsheeteditor/mobile/src/view/FilterOptions.jsx b/apps/spreadsheeteditor/mobile/src/view/FilterOptions.jsx index ea12db905..20b77dc1f 100644 --- a/apps/spreadsheeteditor/mobile/src/view/FilterOptions.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/FilterOptions.jsx @@ -55,7 +55,7 @@ const FilterOptions = (props) => { - {_t.textClearFilter} + {_t.textClearFilter} props.onDeleteFilter()} id="btn-delete-filter">{_t.textDeleteFilter}