From 407eccf53eb68b6d3b60579c6cc35baf0d07eac1 Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Tue, 17 Sep 2024 13:18:26 +0000 Subject: [PATCH] fix: change loading behavior of Project contents panels --- web/src/components/ProjectContents.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/components/ProjectContents.vue b/web/src/components/ProjectContents.vue index 7bc2b046..5d897572 100644 --- a/web/src/components/ProjectContents.vue +++ b/web/src/components/ProjectContents.vue @@ -78,9 +78,11 @@ export default { } watch(openPanels, () => { - projectContents.value = {}; panels.forEach((panel) => { - if (openPanels.value.includes(panel.label)) { + if ( + openPanels.value.includes(panel.label) && + !projectContents.value[panel.label]?.length + ) { panel.loadFunction(props.project.id).then((data) => { projectContents.value[panel.label] = data; panel.storeVar.value = data;