Skip to content

Commit 2e3f77c

Browse files
committed
update status select
1 parent e97cf7e commit 2e3f77c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/composables/router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const defineRouteQuery = (key: string, selected: Ref<string[]>) => {
2525

2626
selected.value = inp
2727

28-
router.push({ name: route.name as string, query: { ...route.query, [key]: inp }, params: route.params })
28+
return router.push({ name: route.name as string, query: { ...route.query, [key]: inp }, params: route.params })
2929
}
3030
}
3131

frontend/modules/core/components/form/StatusSelect.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
<script lang="ts" setup>
2727
import {Status} from "../../types";
2828
29-
const props = defineProps<{ source?: string; modelValue?: string[] }>();
29+
const props = defineProps<{ source?: string; modelValue?: Status[] }>();
3030
31-
const selected = ref<string[]>(props.modelValue || []);
31+
const selected = ref<Status[]>(props.modelValue || []);
3232
3333
const items: Status[] = [
3434
Status.PASS,

0 commit comments

Comments
 (0)