From 71d2db31e08366733374430c4618691e36425d5f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 29 Dec 2023 08:25:41 +0800 Subject: [PATCH] Fix undefined sKey --- src/components/status.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 6102a651..69787536 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -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];