Skip to content

Commit 23e3a46

Browse files
committed
fix: TT-314 SYncronize local storage projects
1 parent 6cad459 commit 23e3a46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/modules/shared/utils/project-storage.util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { isEmpty } from 'lodash';
44

55
export function updateProjectStorage(serverProjects: Project[]): void {
66
const storageProjects: Project[] = getProjectsOnStorage(projectsKey);
7+
78
const isServerProjectsEmpty = isEmpty(serverProjects);
89
const updatedStorageProjects: Project[] = [];
910

@@ -12,7 +13,7 @@ export function updateProjectStorage(serverProjects: Project[]): void {
1213
const project = serverProjects.find((serverProject) => serverProject.id === storageProject.id);
1314

1415
if (project) {
15-
updatedStorageProjects.push(project);
16+
updatedStorageProjects.push(storageProject);
1617
}
1718
});
1819

0 commit comments

Comments
 (0)