Skip to content
代码片段 群组 项目
提交 69659315 编辑于 作者: Song Guo's avatar Song Guo 提交者: Boris Zbarsky
浏览文件

Do not set is_fabric_scoped_event for nullable fabric index field

上级 5ee05071
No related branches found
No related tags found
无相关合并请求
......@@ -407,18 +407,14 @@ async function zcl_events(options) {
let ps = events.map(async (ev) => {
ev.event_is_fabric_scoped = false
ev.event_is_fabric_index_nullable = false
ev.items = await queryEvent.selectEventFieldsByEventId(
this.global.db,
ev.id
)
ev.items.forEach((i) => {
if (i.type && i.type.toLowerCase() == 'fabric_idx') {
if (i.type && i.type.toLowerCase() == 'fabric_idx' && !i.isNullable) {
ev.event_is_fabric_scoped = true
ev.event_fabric_idx_field = i.name
if (i.isNullable) {
ev.event_is_fabric_index_nullable = true
}
}
})
})
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册