diff --git a/frontend/src/common/js/utils.js b/frontend/src/common/js/utils.js index f737b8133a..23e491459b 100644 --- a/frontend/src/common/js/utils.js +++ b/frontend/src/common/js/utils.js @@ -197,7 +197,8 @@ export function getCurrentUserId() { } export function getCurrentProjectID() { - return localStorage.getItem(PROJECT_ID); + let user = getCurrentUser(); + return user.lastProjectId; } export function enableModules(...modules) {