File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import React, {
6
6
import useLogFileStore from "../stores/logFileStore" ;
7
7
import useQueryStore from "../stores/queryStore" ;
8
8
import useViewStore from "../stores/viewStore" ;
9
+ import { HASH_PARAM_NAMES } from "../typings/url" ;
9
10
import {
10
11
CURSOR_CODE ,
11
12
CursorType ,
@@ -62,7 +63,7 @@ const AppController = ({children}: AppControllerProps) => {
62
63
// Handle initial page load and maintain full URL state
63
64
const hashParams = getWindowUrlHashParams ( ) ;
64
65
updateWindowUrlHashParams ( {
65
- isPrettified : URL_HASH_PARAMS_DEFAULT . isPrettified ,
66
+ isPrettified : hashParams [ HASH_PARAM_NAMES . IS_PRETTIFIED ] ,
66
67
timestamp : URL_HASH_PARAMS_DEFAULT . timestamp ,
67
68
} ) ;
68
69
const { setIsPrettified} = useViewStore . getState ( ) ;
Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ const useLogFileStore = create<LogFileState>((set) => ({
158
158
159
159
set ( fileInfo ) ;
160
160
161
+ const { isPrettified} = useViewStore . getState ( ) ;
162
+ await logFileManagerProxy . setIsPrettified ( isPrettified ) ;
163
+
161
164
const pageData = await logFileManagerProxy . loadPage ( cursor ) ;
162
165
updatePageData ( pageData ) ;
163
166
setUiState ( UI_STATE . READY ) ;
You can’t perform that action at this time.
0 commit comments