fix: undefined req
This commit is contained in:
parent
b811009a77
commit
3fee3690b5
|
@ -3,9 +3,12 @@ import {ensureUniqueReduction} from '@latus/core';
|
|||
export default {
|
||||
hooks: {
|
||||
'@latus/http/plugins': async (req, latus) => ({
|
||||
'@reddichat/state/client': {
|
||||
defaultState: await ensureUniqueReduction(latus, '@reddichat/state/defaultState', req),
|
||||
},
|
||||
'@reddichat/state/client': req
|
||||
? {
|
||||
defaultState: await ensureUniqueReduction(latus, '@reddichat/state/defaultState', req),
|
||||
}
|
||||
: {}
|
||||
,
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user