@ledvance/ui-biz-bundle 1.1.83 → 1.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -246,9 +246,11 @@ export function useSceneStatusId(params: MoodPageParams): [number, (moodId: numb
|
|
|
246
246
|
const devId = useDeviceId();
|
|
247
247
|
const [sceneStatusId, setSceneStatusId] = useState(-1);
|
|
248
248
|
if (!params.isSupportSceneStatus) {
|
|
249
|
-
const setEmpty = useCallback(() => {
|
|
250
|
-
return new Promise<any>(() => {
|
|
251
|
-
|
|
249
|
+
const setEmpty = useCallback((moodId: number) => {
|
|
250
|
+
return new Promise<any>((resolve, _reject) => {
|
|
251
|
+
resolve(moodId)
|
|
252
|
+
});
|
|
253
|
+
}, []);
|
|
252
254
|
return [sceneStatusId, setEmpty]
|
|
253
255
|
}
|
|
254
256
|
useEffect(() => {
|
|
@@ -278,7 +278,7 @@ const MoodPage = () => {
|
|
|
278
278
|
moodInfo.secondaryLamp.id === moodItem.secondaryLamp.id &&
|
|
279
279
|
(mainWork === WorkMode.Scene || secondaryWork === WorkMode.Scene) && !flagMode.flagMode && switchLed
|
|
280
280
|
);
|
|
281
|
-
} else if (params.isSupportSceneStatus) {
|
|
281
|
+
} else if (params.isSupportSceneStatus && sceneStatusId !== -1) {
|
|
282
282
|
return sceneStatusId === moodItem.id && mainWork === WorkMode.Scene && !flagMode.flagMode && switchLed
|
|
283
283
|
} else {
|
|
284
284
|
return moodInfo.id === moodItem.id && mainWork === WorkMode.Scene && !flagMode.flagMode && switchLed
|