File tree Expand file tree Collapse file tree
apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/clickhouse-migration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,12 +95,8 @@ export default function PageClient() {
9595
9696 const resetMigration = React . useCallback ( ( ) => {
9797 stopMigration ( ) ;
98- cursorRef . current = null ;
99- timeWindowRef . current = null ;
10098 setCursor ( null ) ;
10199 setError ( null ) ;
102- setTotalMigratedEvents ( 0 ) ;
103- setTotalInsertedRows ( 0 ) ;
104100 setBatchCount ( 0 ) ;
105101 setDone ( false ) ;
106102 } , [ stopMigration ] ) ;
@@ -161,7 +157,8 @@ export default function PageClient() {
161157 value = { minCreatedAt }
162158 onChange = { ( e ) => {
163159 setMinCreatedAt ( e . target . value ) ;
164- resetMigration ( ) ;
160+ cursorRef . current = null ;
161+ timeWindowRef . current = null ;
165162 } }
166163 placeholder = "1735689600000 or 2024-08-01T00:00"
167164 />
@@ -173,7 +170,8 @@ export default function PageClient() {
173170 value = { maxCreatedAt }
174171 onChange = { ( e ) => {
175172 setMaxCreatedAt ( e . target . value ) ;
176- resetMigration ( ) ;
173+ cursorRef . current = null ;
174+ timeWindowRef . current = null ;
177175 } }
178176 placeholder = "1767225600000 or 2024-12-01T00:00"
179177 />
You can’t perform that action at this time.
0 commit comments