We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cad459 commit 23e3a46Copy full SHA for 23e3a46
src/app/modules/shared/utils/project-storage.util.ts
@@ -4,6 +4,7 @@ import { isEmpty } from 'lodash';
4
5
export function updateProjectStorage(serverProjects: Project[]): void {
6
const storageProjects: Project[] = getProjectsOnStorage(projectsKey);
7
+
8
const isServerProjectsEmpty = isEmpty(serverProjects);
9
const updatedStorageProjects: Project[] = [];
10
@@ -12,7 +13,7 @@ export function updateProjectStorage(serverProjects: Project[]): void {
12
13
const project = serverProjects.find((serverProject) => serverProject.id === storageProject.id);
14
15
if (project) {
- updatedStorageProjects.push(project);
16
+ updatedStorageProjects.push(storageProject);
17
}
18
});
19
0 commit comments