diff --git a/core/core-frontend/src/hooks/web/useFilter.ts b/core/core-frontend/src/hooks/web/useFilter.ts index 9a49209380..7617abdb59 100644 --- a/core/core-frontend/src/hooks/web/useFilter.ts +++ b/core/core-frontend/src/hooks/web/useFilter.ts @@ -125,7 +125,8 @@ const getValueByDefaultValueCheckOrFirstLoad = ( if (firstLoad && !selectValue?.length) { return defaultValueCheck ? defaultValue : multiple ? [] : '' } - return selectValue || '' + + return selectValue ? (Array.isArray(selectValue) ? selectValue : [selectValue]) : '' } export const useFilter = (curComponentId: string, firstLoad = false) => {