Skip to content

Commit

Permalink
fix(设备管理): 运行状态
Browse files Browse the repository at this point in the history
运行状态逻辑错误

fix #198
  • Loading branch information
Lind-pro committed Sep 30, 2020
1 parent f7f8628 commit 3d4b3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/device/instance/editor/detail/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const Status: React.FC<Props> = props => {
}))
).subscribe((data) => {
const index = properties.findIndex(item => item.id === data.property);
if (properties[index] && properties[index].list) {
if (index > -1) {
properties[index].list = data.list;
}
}, () => {
Expand Down

0 comments on commit 3d4b3f1

Please sign in to comment.