Skip to content
Snippets Groups Projects
Commit 1a5038cc authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'bugfix/102-endless-loop-when-fetching-and-soritng-workflows' into 'main'

Resolve "Endless loop when fetching and soritng workflows"

Closes #102

See merge request !99
parents d27a30da 61d695e4
No related branches found
No related tags found
1 merge request!99Resolve "Endless loop when fetching and soritng workflows"
Pipeline #48052 canceled
......@@ -120,7 +120,7 @@ onMounted(() => {
<div
class="row border-bottom mb-4 justify-content-between align-items-center"
>
<h2 class="w-fit">Resource Requests</h2>
<h2 class="w-fit">Resource requests</h2>
<span
class="w-fit"
tabindex="0"
......@@ -236,7 +236,7 @@ onMounted(() => {
</tbody>
</table>
<div v-else class="text-center mt-5 fs-4">
There are currently no Resources to review
There are currently no resources to review
</div>
</template>
......
......@@ -48,12 +48,12 @@ function filterWorkflowWithoutVersion(workflow: WorkflowOut): boolean {
}
const workflowWithSortedVersions = computed<WorkflowOut[]>(() => {
const temp = [...workflowRepository.workflows];
temp.forEach((workflow) => {
const versions = [...workflow.versions];
const temp = JSON.parse(JSON.stringify(workflowRepository.workflows));
for (const index in temp) {
const versions = [...temp[index].versions];
versions.sort((a, b) => (a.created_at < b.created_at ? 1 : -1));
workflow.versions = versions;
});
temp[index].versions = versions;
}
return temp;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment