@@ -355,6 +355,7 @@ import type {
355
355
SetImportWizardOpen ,
356
356
UpdateImportOperations ,
357
357
UpdateProjectRequirements ,
358
+ UpdateImportStatus ,
358
359
} from '../action-types'
359
360
import { isAlignment , isLoggedIn } from '../action-types'
360
361
import type { Mode } from '../editor-modes'
@@ -1034,7 +1035,7 @@ export function restoreEditorState(
1034
1035
githubSettings : currentEditor . githubSettings ,
1035
1036
imageDragSessionState : currentEditor . imageDragSessionState ,
1036
1037
githubOperations : currentEditor . githubOperations ,
1037
- importOperations : currentEditor . importOperations ,
1038
+ importState : currentEditor . importState ,
1038
1039
projectRequirements : currentEditor . projectRequirements ,
1039
1040
importWizardOpen : currentEditor . importWizardOpen ,
1040
1041
branchOriginContents : currentEditor . branchOriginContents ,
@@ -2178,13 +2179,22 @@ export const UPDATE_FNS = {
2178
2179
} ,
2179
2180
UPDATE_IMPORT_OPERATIONS : ( action : UpdateImportOperations , editor : EditorModel ) : EditorModel => {
2180
2181
const resultImportOperations = getUpdateOperationResult (
2181
- editor . importOperations ,
2182
+ editor . importState . importOperations ,
2182
2183
action . operations ,
2183
2184
action . type ,
2184
2185
)
2185
2186
return {
2186
2187
...editor ,
2187
- importOperations : resultImportOperations ,
2188
+ importState : { ...editor . importState , importOperations : resultImportOperations } ,
2189
+ }
2190
+ } ,
2191
+ UPDATE_IMPORT_STATUS : ( action : UpdateImportStatus , editor : EditorModel ) : EditorModel => {
2192
+ return {
2193
+ ...editor ,
2194
+ importState : {
2195
+ ...editor . importState ,
2196
+ importStatus : action . importStatus ,
2197
+ } ,
2188
2198
}
2189
2199
} ,
2190
2200
UPDATE_PROJECT_REQUIREMENTS : (
0 commit comments