Skip to content

Commit

Permalink
fix(ui): remove frigate status icon if removed after displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
jakowenko committed Sep 30, 2021
1 parent 73147ec commit f01c735
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/views/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,8 @@ export default {
async checkDetectors() {
const { data } = await ApiService.get('config?format=json');
if (data.frigate && data.frigate.url) {
this.frigate.configured = true;
this.checkFrigate(data.frigate.url);
}
this.frigate.configured = data.frigate && data.frigate.url;
if (this.frigate.configured) this.checkFrigate(data.frigate.url);
this.services = data?.detectors
? Object.keys(data.detectors).map((item) => ({ name: this.formatName(item), status: null }))
Expand Down

0 comments on commit f01c735

Please sign in to comment.