Skip to content

Commit f88874a

Browse files
authored
Adding an optional flag to prop values initialized withDefaults (#1839)
1 parent 153c5c9 commit f88874a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Frontend/src/components/ExclamationMark.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { WarningLevel } from "@/components/WarningLevel";
33
44
const props = withDefaults(
55
defineProps<{
6-
type: WarningLevel;
6+
type?: WarningLevel;
77
}>(),
88
{ type: WarningLevel.None }
99
);

src/Frontend/src/components/ItemsPerPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
withDefaults(
33
defineProps<{
4-
options: number[];
4+
options?: number[];
55
}>(),
66
{ options: () => [20, 35, 50, 75] }
77
);

src/Frontend/src/components/TimeSince.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import moment from "moment";
44
55
const emptyDate = "0001-01-01T00:00:00";
66
7-
const props = withDefaults(defineProps<{ dateUtc: string }>(), { dateUtc: emptyDate });
7+
const props = withDefaults(defineProps<{ dateUtc?: string }>(), { dateUtc: emptyDate });
88
99
let interval: number | undefined = undefined;
1010

src/Frontend/src/components/configuration/RetryRedirectEdit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const model = withDefaults(
1818
message_redirect_id: string;
1919
from_physical_address: string;
2020
to_physical_address: string;
21-
immediately_retry: boolean;
21+
immediately_retry?: boolean;
2222
queues: string[];
2323
}>(),
2424
{ immediately_retry: false }

0 commit comments

Comments
 (0)