From 97dc309bcb003a0a7a46eda724da64c85a1b6a35 Mon Sep 17 00:00:00 2001 From: alex <48489896+devnaumov@users.noreply.github.com> Date: Tue, 24 Oct 2023 17:10:45 +0200 Subject: [PATCH] CB-4022 make filter case insensitive (#2080) Co-authored-by: EvgeniaBzzz <139753579+EvgeniaBzzz@users.noreply.github.com> --- .../src/SqlResultTabs/OutputLogs/useOutputLogsPanelState.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/OutputLogs/useOutputLogsPanelState.ts b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/OutputLogs/useOutputLogsPanelState.ts index f2cfa2e591..edd91716c7 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlResultTabs/OutputLogs/useOutputLogsPanelState.ts +++ b/webapp/packages/plugin-sql-editor/src/SqlResultTabs/OutputLogs/useOutputLogsPanelState.ts @@ -38,9 +38,11 @@ export const useOutputLogsPanelState = (outputLogs: IOutputLog[], sqlEditorTabSt if (!selectedLogTypes.includes(log.severity)) { return false; } - if (this.searchValue.length > 0 && !log.message?.includes(this.searchValue)) { + + if (this.searchValue.length > 0 && !log.message.toLowerCase().includes(this.searchValue.toLowerCase())) { return false; } + return true; }); },