@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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.83",
7
+ "version": "1.1.84",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -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