Skip to content

Commit

Permalink
fix: logMaxRows value
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 14, 2023
1 parent b66dd89 commit b3c924e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ export enum LOG_LEVEL {
Silent = 'silent',
}

export const LOGS_TABLE_MAX_ROWS_LIST = [200, 300, 500, 800, 1000]
export const LOGS_TABLE_MAX_ROWS_LIST = [200, 300, 500, 800, 1000]
12 changes: 3 additions & 9 deletions src/pages/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -437,17 +437,11 @@ const ConfigForXd = () => {

<select
class="select select-bordered w-full max-w-xs"
value={rows}
onChange={(e) => {
setLogMaxRows(parseInt(e.target.value))
}}
value={logMaxRows()}
onChange={(e) => setLogMaxRows(parseInt(e.target.value))}
>
<For each={LOGS_TABLE_MAX_ROWS_LIST}>
{(rows) => (
<option value={rows}>
{rows}
</option>
)}
{(rows) => <option value={rows}>{rows}</option>}
</For>
</select>
</div>
Expand Down

0 comments on commit b3c924e

Please sign in to comment.