Skip to content

Commit

Permalink
Minor fix no-unsafe-optional-chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed May 2, 2024
1 parent 3a7d1b4 commit 33a120e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/components/broadcast/roots/ClientOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export default {
this.$delete(this.overlays, socketID);
},
obs_remote_data(data) {
const [scenes, inputs] = data?.[0]?.results;
if (!data?.[0]?.results) return;
const [scenes, inputs] = data[0].results;
console.log(scenes, inputs);
this.remoteObsData = {
scenes: scenes.scenes,
Expand Down

0 comments on commit 33a120e

Please sign in to comment.