Skip to content

Commit

Permalink
fix: document filter is now reactive again (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrer authored Jun 28, 2024
1 parent 084933b commit 1fbbbac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/workflows/timeline/TimelineFilters.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import filtersStore from "@/store/filters-store"
import workflowsStore from "@/store/workflows-store"
import { computed, onMounted, ref } from "vue"
import { computed, onMounted, ref, watch } from "vue"
import MultiSelect from "primevue/multiselect"
import type { DropdownOption, GroundTruth } from "@/types"
import { deduplicateStepIds, mapGtId } from '@/helpers/utils'
Expand Down Expand Up @@ -106,6 +106,10 @@ const workflowhasSomeSelectedWorkflowStep = (workflowId: string) => {
return workflow.steps.some((step) => selectedWorkflowSteps.value.findIndex(({ value }) => (value === step.id)) > -1)
}
watch(() => filtersStore.gt, () => {
selectGTs()
})
onMounted(() => {
workflowStepOptions.value = deduplicateStepIds(workflowsStore.workflows).map(id => ({ value: id, label: t(id) }))
Expand Down

0 comments on commit 1fbbbac

Please sign in to comment.