We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0559e8b commit aa952b8Copy full SHA for aa952b8
src/projectmanager.js
@@ -285,7 +285,18 @@ class ProjectManager {
285
286
#loadFromStorage() {
287
const data = localStorage.getItem('current_project');
288
- return data ? JSON.parse(data) : null;
+ if (data) {
289
+ const project = JSON.parse(data);
290
+
291
+ if (project && project.resources) {
292
+ project.resources.forEach((resource) => {
293
+ resource.isActive = false;
294
+ });
295
+ }
296
297
+ return project;
298
299
+ return null;
300
}
301
302
#saveToStorage() {
0 commit comments