Skip to content

Commit e33538a

Browse files
committed
handle test setup
1 parent 5b16d13 commit e33538a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Frontend/src/stores/MessageStore.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { acceptHMRUpdate, defineStore, storeToRefs } from "pinia";
2-
import { computed, reactive, ref, watch } from "vue";
2+
import { computed, reactive, Ref, ref, watch } from "vue";
33
import Header from "@/resources/Header";
44
import type EndpointDetails from "@/resources/EndpointDetails";
55
import { FailedMessage, ExceptionDetails, FailedMessageStatus } from "@/resources/FailedMessage";
@@ -77,6 +77,7 @@ export const useMessageStore = defineStore("MessageStore", () => {
7777

7878
watch(serviceControlUrl, loadConfig, { immediate: true });
7979
async function loadConfig() {
80+
if (!serviceControlUrl.value) return;
8081
const [, data] = await serviceControlStore.fetchTypedFromServiceControl<EditAndRetryConfig>("edit/config");
8182
edit_and_retry_config.value = data;
8283
}

0 commit comments

Comments
 (0)