Commit 302db6c74c4c26d6a5481295b39f4bcf2f17886a
1 parent
52947efe
fix: rule linedge clear alarm configuration not save deviceType field
Showing
2 changed files
with
2 additions
and
1 deletions
| ... | ... | @@ -423,6 +423,7 @@ |
| 423 | 423 | triggered: |
| 424 | 424 | action.doContext.clearRule[index].triggerCondition.condition.spec.type, |
| 425 | 425 | device: action.doContext.clearRule[index].entityType, |
| 426 | + deviceType: action.doContext.clearRule[index].deviceType, | |
| 426 | 427 | triggerType: action.doContext.clearRule[index].triggerType, |
| 427 | 428 | type1: |
| 428 | 429 | action.doContext.clearRule[index].triggerCondition.condition.condition[0].key | ... | ... |
| ... | ... | @@ -120,7 +120,7 @@ export const genActionData = (actionData) => { |
| 120 | 120 | triggerType: item.triggerType, |
| 121 | 121 | entityType: item.device, |
| 122 | 122 | entityId: item.device === 'PART' ? item.entityId : null, |
| 123 | - deviceType, | |
| 123 | + deviceType: item.deviceType, | |
| 124 | 124 | deviceProfileId: item.deviceProfileId, |
| 125 | 125 | triggerCondition: { |
| 126 | 126 | alarmDetails: item.detail, | ... | ... |