mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-29 02:21:41 +00:00
[Client] Fix issue with clearing multitag buffer (#1299)
* fix improper state reference * add parentheses for clarity * fix buffer array reactivity + loop optimization
This commit is contained in:
@@ -84,7 +84,8 @@ export const useStateStore = defineStore("state", {
|
||||
return this.backendResults[this.currentCameraIndex.toString()];
|
||||
},
|
||||
currentMultitagBuffer(): MultitagResult[] | undefined {
|
||||
return this.multitagResultBuffer[this.currentCameraIndex.toString()];
|
||||
if (!this.multitagResultBuffer[this.currentCameraIndex]) this.multitagResultBuffer[this.currentCameraIndex] = [];
|
||||
return this.multitagResultBuffer[this.currentCameraIndex];
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user