fix recsys bug (#7412)
This commit is contained in:
parent
4cfc201b20
commit
03f5358a8c
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@ const recsys = {
|
||||||
createRecsysEntry: function (claimId, parentUuid) {
|
createRecsysEntry: function (claimId, parentUuid) {
|
||||||
if (window.store && claimId) {
|
if (window.store && claimId) {
|
||||||
const state = window.store.getState();
|
const state = window.store.getState();
|
||||||
const { id: userId } = selectUser(state);
|
const user = selectUser(state);
|
||||||
|
const userId = user ? user.id : null;
|
||||||
if (parentUuid) {
|
if (parentUuid) {
|
||||||
// Make a stub entry that will be filled out on page load
|
// Make a stub entry that will be filled out on page load
|
||||||
recsys.entries[claimId] = {
|
recsys.entries[claimId] = {
|
||||||
|
|
Loading…
Reference in a new issue