From 26eb441da0ea6b93ec33ed4a0b54b1f09f0668b1 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 3 Feb 2023 16:58:01 +0800 Subject: [PATCH] fix(nc-gui): incorrect condition in getLikeText & getNotLikeText --- packages/nc-gui/utils/filterUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'