Fix undefined sKey
This commit is contained in:
parent
88547fa403
commit
71d2db31e0
|
@ -149,7 +149,7 @@ function Status({
|
|||
const { instance: currentInstance } = api();
|
||||
const sameInstance = instance === currentInstance;
|
||||
|
||||
let sKey = statusKey(statusID, instance);
|
||||
let sKey = statusKey(statusID || status?.id, instance);
|
||||
const snapStates = useSnapshot(states);
|
||||
if (!status) {
|
||||
status = snapStates.statuses[sKey] || snapStates.statuses[statusID];
|
||||
|
|
Loading…
Reference in a new issue