Skip to content

Commit

Permalink
fix todos
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 29, 2023
1 parent f3f7cca commit 982fb8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions photon-client/src/components/common/cv-range-slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ const localValue = computed<[number, number]>({
set: v => emit("input", v)
});
// TODO do this better
const changeFromSlot = (v, i) => {
localValue.value = localValue.value.map((value, index) => index === i ? v : value) as [number, number];
const changeFromSlot = (v: number, i: number) => {
// localValue.value must be replaced for a reactive change to take place
const temp = localValue.value;
temp[i] = v;
localValue.value = temp;
};
</script>

Expand Down
1 change: 0 additions & 1 deletion photon-client/src/components/dashboard/CamerasCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const fpsTooLow = computed<boolean>(() => {
</div>
</v-card-title>
<v-divider style="border-color: white" />
<!-- TODO do this better -->
<v-row
class="pl-3 pr-3 pt-3 pb-3"
style="flex-wrap: nowrap; justify-content: center"
Expand Down

0 comments on commit 982fb8a

Please sign in to comment.