@ledvance/ui-biz-bundle 1.1.46 → 1.1.47

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.46",
7
+ "version": "1.1.47",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -162,9 +162,17 @@ const FlagPage = () => {
162
162
  if (res.success) {
163
163
  state.flags = cloneDeep(newScene)
164
164
  setFlags(cloneDeep(newScene))
165
- if(mode === 'del' && currentMood.id !== flagId){
166
- return {
167
- success: true
165
+ if(mode === 'del'){
166
+ const isDrawTool = !!(params.isCeilingLight || params.isStripLight)
167
+ if(!isDrawTool && (dps[params.workModeCode] !== WORK_MODE.SCENE || currentMood.id !== flagId)){
168
+ return {
169
+ success: true
170
+ }
171
+ }
172
+ if(isDrawTool && !flagMode.flagMode){
173
+ return {
174
+ success: true
175
+ }
168
176
  }
169
177
  }
170
178
  if(mood){