fix recsys bug #7412

Merged
jessopb merged 1 commit from fix-recsys into master 2022-01-10 18:50:46 +01:00
Showing only changes of commit a1c348c31d - Show all commits

View file

@ -94,7 +94,8 @@ const recsys = {
createRecsysEntry: function (claimId, parentUuid) {
if (window.store && claimId) {
const state = window.store.getState();
const { id: userId } = selectUser(state);
const user = selectUser(state);
const userId = user ? user.id : null;
if (parentUuid) {
// Make a stub entry that will be filled out on page load
recsys.entries[claimId] = {