Skip to content

Commit 70f1cd4

Browse files
Lint
1 parent c8b0e79 commit 70f1cd4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/components/Editor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const Editor = () => {
138138
const {mode, systemMode} = useColorScheme();
139139

140140
const {beginLineNumToLogEventNum, logData, loadPageByAction} = useContext(StateContext);
141-
const {logEventNum, isPrettified} = useContext(UrlContext);
141+
const {isPrettified, logEventNum} = useContext(UrlContext);
142142

143143
const [lineNum, setLineNum] = useState<number>(1);
144144
const beginLineNumToLogEventNumRef = useRef<BeginLineNumToLogEventNumMap>(

src/components/StatusBar/LogLevelSelect/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ const ClearFiltersOption = ({onClick}: ClearFiltersOptionProps) => {
153153
* @return
154154
*/
155155
const LogLevelSelect = () => {
156-
const [selectedLogLevels, setSelectedLogLevels] = useState<LOG_LEVEL[]>([]);
157156
const {uiState, filterLogs} = useContext(StateContext);
157+
const [selectedLogLevels, setSelectedLogLevels] = useState<LOG_LEVEL[]>([]);
158158
const disabled = isDisabled(uiState, UI_ELEMENT.LOG_LEVEL_FILTER);
159159

160160
const handleRenderValue = (selected: SelectValue<SelectOption<LOG_LEVEL>, true>) => (

src/contexts/StateContextProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ const StateContextProvider = ({children}: StateContextProviderProps) => {
474474
setUiState(UI_STATE.FAST_LOADING);
475475
workerPostReq(mainWorkerRef.current, WORKER_REQ_CODE.SET_FILTER, {
476476
cursor: {code: CURSOR_CODE.EVENT_NUM, args: {eventNum: logEventNumRef.current ?? 1}},
477-
logLevelFilter: filter,
478477
isPrettified: isPrettifiedRef.current,
478+
logLevelFilter: filter,
479479
});
480480
}, []);
481481

src/contexts/UrlContextProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const URL_SEARCH_PARAMS_DEFAULT = Object.freeze({
3030
* Default values of the hash parameters.
3131
*/
3232
const URL_HASH_PARAMS_DEFAULT = Object.freeze({
33-
[HASH_PARAM_NAMES.LOG_EVENT_NUM]: null,
3433
[HASH_PARAM_NAMES.IS_PRETTIFIED]: false,
34+
[HASH_PARAM_NAMES.LOG_EVENT_NUM]: null,
3535
});
3636

3737
/**

src/typings/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ interface UrlSearchParams {
1515
}
1616

1717
interface UrlHashParams {
18-
[HASH_PARAM_NAMES.LOG_EVENT_NUM]: number;
1918
[HASH_PARAM_NAMES.IS_PRETTIFIED]: boolean;
19+
[HASH_PARAM_NAMES.LOG_EVENT_NUM]: number;
2020
}
2121

2222
type UrlSearchParamUpdatesType = {

0 commit comments

Comments
 (0)