We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d349c87 commit 55a57e3Copy full SHA for 55a57e3
1 file changed
src/io/import/processors/restoreStateFile.ts
@@ -127,9 +127,11 @@ export async function completeStateFileRestore(
127
});
128
129
if (!manifest.viewByID) {
130
- const firstStoreID = Object.values(stateIDToStoreID)[0];
131
- if (firstStoreID) {
132
- viewStore.setDataForAllViews(firstStoreID);
+ const storeID = manifest.primarySelection
+ ? stateIDToStoreID[manifest.primarySelection]
+ : Object.values(stateIDToStoreID)[0];
133
+ if (storeID) {
134
+ viewStore.setDataForAllViews(storeID);
135
}
136
137
0 commit comments