Web: Common: FilterInput: fixed transfer viewSettings

This commit is contained in:
Artem Tarasov 2021-06-30 17:05:11 +03:00
parent b7d834d3c6
commit ef25c07ddc
3 changed files with 4 additions and 3 deletions

View File

@ -99,7 +99,8 @@ class FilterInput extends React.Component {
} = props;
const { sortDirection, sortId, inputValue } = selectedFilterData;
const sortData = getSortData();
const viewSettings = getViewSettingsData();
let viewSettings = null;
viewSettings = getViewSettingsData && getViewSettingsData();
const filterValues = selectedFilterData ? this.getDefaultFilterData() : [];

View File

@ -124,7 +124,7 @@ class SortComboBox extends React.Component {
spacing="0px"
/>
</DropDownItem>
{viewSettings.length !== 0 && viewAs && isMobileOnly && (
{viewSettings && viewSettings.length && viewAs && isMobileOnly && (
<>
<DropDownItem isSeparator />
<DropDownItem noHover>

@ -1 +1 @@
Subproject commit 8177bad15d567d997a79478a65d32662a6f773b1
Subproject commit b1063eae56d183b5c0b6eb887115c378f3941ebe