diff --git a/packages/client/src/store/FilesStore.js b/packages/client/src/store/FilesStore.js index 7eaa74ff7e..2c8ccd5175 100644 --- a/packages/client/src/store/FilesStore.js +++ b/packages/client/src/store/FilesStore.js @@ -1478,10 +1478,10 @@ class FilesStore { const { filterType, searchInContent } = filterData; - if (typeof filterData.withSubfolders !== "boolean") + if (!Boolean(filterData.withSubfolders)) filterData.withSubfolders = defaultFilter.withSubfolders; - if (typeof searchInContent !== "boolean") + if (!Boolean(searchInContent)) filterData.searchInContent = defaultFilter.searchInContent; if (!Object.keys(FilterType).find((key) => FilterType[key] === filterType))