Skip to content
Snippets Groups Projects
Commit 256f8e91 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

Update client.js - store groups as string.

parent 473f40d9
No related branches found
No related tags found
No related merge requests found
Pipeline #3228 passed
......@@ -117,8 +117,9 @@ function onStartAllocate() {
}
function resumeStaff() {
// allow rebuilding of data from localStorage cache
if ( window.localStorage.groups ){
rebuildGroups(window.localStorage.groups);
rebuildGroups(JSON.parse( window.localStorage.groups ));
}
}
......@@ -131,7 +132,7 @@ function showGroups(payload) {
const group = payload.groups[groupID];
groupCache.push( group );
}
window.localStorage.groups = groupCache;
window.localStorage.groups = JSON.stringify(groupCache);
}
function rebuildGroups(groups) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment