diff --git a/packages/nc-gui/utils/filterUtils.ts b/packages/nc-gui/utils/filterUtils.ts index be567e79bf..d83d912b7d 100644 --- a/packages/nc-gui/utils/filterUtils.ts +++ b/packages/nc-gui/utils/filterUtils.ts @@ -29,14 +29,14 @@ const getNeqText = (fieldUiType: UITypes) => { } const getLikeText = (fieldUiType: UITypes) => { - if (UITypes.Attachment) { + if (fieldUiType === UITypes.Attachment) { return 'filenames contain' } return 'is like' } const getNotLikeText = (fieldUiType: UITypes) => { - if (UITypes.Attachment) { + if (fieldUiType === UITypes.Attachment) { return "filenames doesn't contain" } return 'is not like'