Skip to content

Commit ea8ed92

Browse files
authored
fix: TT-314 Local storage projects (#734)
1 parent 6cad459 commit ea8ed92

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)