From 67a96f98b044e73907d91c54a8cad52074311dae Mon Sep 17 00:00:00 2001 From: nscuro Date: Sat, 3 Feb 2024 19:36:46 +0100 Subject: [PATCH] Fix redundant requests to `/api/v1/component` when loading project page `onlyOutdated` and `onlyDirect` were initialized with non-boolean values. Both variables have a watch on them, triggering a refresh of the components table upon change. Both variables are used as model for `c-switch` components, causing their value to transition to `false` immediately, triggering the watches and consequently table refreshes. This behavior could cause requests to be abandoned before their content was fully consumed, resulting in `EofException`s in the API server. Signed-off-by: nscuro --- src/views/portfolio/projects/ProjectComponents.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/portfolio/projects/ProjectComponents.vue b/src/views/portfolio/projects/ProjectComponents.vue index dce0f4d12..40cea58b4 100644 --- a/src/views/portfolio/projects/ProjectComponents.vue +++ b/src/views/portfolio/projects/ProjectComponents.vue @@ -80,8 +80,8 @@ import SeverityProgressBar from "../../components/SeverityProgressBar"; dataOn: '\u2713', dataOff: '\u2715' }, - onlyOutdated: this.onlyOutdated, - onlyDirect: this.onlyDirect, + onlyOutdated: false, + onlyDirect: false, columns: [ { field: "state",