Skip to content

Commit

Permalink
Improve panel speed
Browse files Browse the repository at this point in the history
Co-authored-by: mvdbeek <[email protected]>"
  • Loading branch information
ahmedhamidawan committed Mar 26, 2024
1 parent 1caeda3 commit 7d7235a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/components/Panels/ToolBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ const localPanel: ComputedRef<Record<string, Tool | ToolSectionType> | null> = c
}
});
const sectionIds = computed(() => Object.keys(localPanel.value || {}));
const favWorkflows = computed(() => {
const Galaxy = getGalaxyInstance();
const storedWorkflowMenuEntries = Galaxy && Galaxy.config.stored_workflow_menu_entries;
Expand Down Expand Up @@ -303,10 +301,10 @@ function setButtonText() {
:query-filter="queryFilter || undefined"
:disable-filter="true"
@onClick="onToolClick" />
<div v-for="(sectionId, key) in sectionIds" :key="key">
<div v-for="(panel, key) in localPanel" :key="key">
<ToolSection
v-if="localPanel[sectionId]"
:category="localPanel[sectionId] || {}"
v-if="panel"
:category="panel || {}"
:query-filter="queryFilter || undefined"
@onClick="onToolClick" />
</div>
Expand Down

0 comments on commit 7d7235a

Please sign in to comment.