Skip to content

Commit 9d8d817

Browse files
committed
fix log error with search and fix word search
1 parent ba99376 commit 9d8d817

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Routes/SidebarRight/ErrorLogs/ErrorLogQueryTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const ErrorLogQueryTable = ({ onSubmit, ErrorLogList }) => {
7575
<FiltersForms layout="inline" form={form} size="medium" onFinish={onFinish}>
7676
<Form.Item label="Search" name="qSearch">
7777
<AutoComplete
78-
style={{ width: '8vw', marginLeft: '1vw' }}
78+
style={{ width: '10vw', marginLeft: '1vw' }}
7979
options={LogOptions}
8080
filterOption={(inputValue, option) =>
8181
option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1

src/Routes/SidebarRight/ErrorLogs/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ const ErrorLogsTable = () => {
5252
if (values?.qSearch || values?.qErrorLogTime) {
5353
const filterErrorLogs = dataSource.filter(
5454
item =>
55-
(item.type.includes(values.qSearch) ||
56-
item.message.includes(values.qSearch)) &&
55+
(item.type.toLowerCase().includes(values.qSearch.toLowerCase()) ||
56+
item.message
57+
.toLowerCase()
58+
.includes(values.qSearch.toLowerCase())) &&
5759
(values.qErrorLogTime != null
5860
? moment(+item.timestamp).isBetween(
5961
values?.qErrorLogTime[0],

0 commit comments

Comments
 (0)