Skip to content

Commit

Permalink
fix: change loading behavior of Project contents panels
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Oct 1, 2024
1 parent 971e991 commit 407eccf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/components/ProjectContents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 407eccf

Please sign in to comment.