diff --git a/client/src/components/ConfigTemplates/InstanceDropdown.vue b/client/src/components/ConfigTemplates/InstanceDropdown.vue
index 9191f032cdc7..80c60134495f 100644
--- a/client/src/components/ConfigTemplates/InstanceDropdown.vue
+++ b/client/src/components/ConfigTemplates/InstanceDropdown.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/client/src/components/FileSources/Instances/EditInstance.vue b/client/src/components/FileSources/Instances/EditInstance.vue
index 311bb7fdc838..fbea25de628c 100644
--- a/client/src/components/FileSources/Instances/EditInstance.vue
+++ b/client/src/components/FileSources/Instances/EditInstance.vue
@@ -3,7 +3,7 @@ import { BTab, BTabs } from "bootstrap-vue";
import { computed, ref } from "vue";
import type { UserFileSourceModel } from "@/api/fileSources";
-import { editFormDataToPayload, editTemplateForm } from "@/components/ConfigTemplates/formUtil";
+import { editFormDataToPayload, editTemplateForm, type FormEntry } from "@/components/ConfigTemplates/formUtil";
import { useInstanceAndTemplate } from "./instance";
import { useInstanceRouting } from "./routing";
@@ -19,13 +19,13 @@ interface Props {
const props = defineProps();
const { instance, template } = useInstanceAndTemplate(ref(props.instanceId));
-const inputs = computed(() => {
+const inputs = computed | undefined>(() => {
template.value;
instance.value;
if (template.value && instance.value) {
return editTemplateForm(template.value, "storage location", instance.value);
}
- return null;
+ return undefined;
});
const title = computed(() => `Edit File Source ${instance.value?.name} Settings`);
diff --git a/client/src/components/FileSources/Instances/UpgradeForm.vue b/client/src/components/FileSources/Instances/UpgradeForm.vue
index 4ca85e7caf67..cf5621e01b24 100644
--- a/client/src/components/FileSources/Instances/UpgradeForm.vue
+++ b/client/src/components/FileSources/Instances/UpgradeForm.vue
@@ -3,7 +3,7 @@ import { BAlert } from "bootstrap-vue";
import { computed, ref } from "vue";
import type { FileSourceTemplateSummary, UserFileSourceModel } from "@/api/fileSources";
-import { upgradeForm, upgradeFormDataToPayload } from "@/components/ConfigTemplates/formUtil";
+import { type FormEntry, upgradeForm, upgradeFormDataToPayload } from "@/components/ConfigTemplates/formUtil";
import { errorMessageAsString } from "@/utils/simple-error";
import { useInstanceRouting } from "./routing";
@@ -19,7 +19,7 @@ interface Props {
const error = ref(null);
const props = defineProps();
-const inputs = computed | null>(() => {
+const inputs = computed | undefined>(() => {
const realizedInstance: UserFileSourceModel = props.instance;
const realizedLatestTemplate = props.latestTemplate;
const form = upgradeForm(realizedLatestTemplate, realizedInstance);
diff --git a/client/src/components/ObjectStore/Instances/CreateForm.vue b/client/src/components/ObjectStore/Instances/CreateForm.vue
index ddadbfccda65..2823ea4cbb25 100644
--- a/client/src/components/ObjectStore/Instances/CreateForm.vue
+++ b/client/src/components/ObjectStore/Instances/CreateForm.vue
@@ -2,7 +2,7 @@
import { BAlert } from "bootstrap-vue";
import { computed, ref } from "vue";
-import { createFormDataToPayload, createTemplateForm } from "@/components/ConfigTemplates/formUtil";
+import { createFormDataToPayload, createTemplateForm, type FormEntry } from "@/components/ConfigTemplates/formUtil";
import type { UserConcreteObjectStore } from "@/components/ObjectStore/Instances/types";
import type { ObjectStoreTemplateSummary } from "@/components/ObjectStore/Templates/types";
import { errorMessageAsString } from "@/utils/simple-error";
@@ -20,7 +20,7 @@ const title = "Create a new storage location for your data";
const submitTitle = "Submit";
const loadingMessage = "Loading storage location template and instance information";
-const inputs = computed(() => {
+const inputs = computed>(() => {
return createTemplateForm(props.template, "storage location");
});
diff --git a/client/src/components/ObjectStore/Instances/EditInstance.vue b/client/src/components/ObjectStore/Instances/EditInstance.vue
index 2569be940178..ab33625d867b 100644
--- a/client/src/components/ObjectStore/Instances/EditInstance.vue
+++ b/client/src/components/ObjectStore/Instances/EditInstance.vue
@@ -2,7 +2,7 @@
import { BTab, BTabs } from "bootstrap-vue";
import { computed, ref } from "vue";
-import { editFormDataToPayload, editTemplateForm } from "@/components/ConfigTemplates/formUtil";
+import { editFormDataToPayload, editTemplateForm, type FormEntry } from "@/components/ConfigTemplates/formUtil";
import { useInstanceAndTemplate } from "./instance";
import { useInstanceRouting } from "./routing";
@@ -19,13 +19,13 @@ interface Props {
const props = defineProps();
const { instance, template } = useInstanceAndTemplate(ref(props.instanceId));
-const inputs = computed(() => {
+const inputs = computed | undefined>(() => {
template.value;
instance.value;
if (template.value && instance.value) {
return editTemplateForm(template.value, "storage location", instance.value);
}
- return null;
+ return undefined;
});
const title = computed(() => `Edit Storage Location ${instance.value?.name} Settings`);
diff --git a/client/src/components/ObjectStore/Instances/UpgradeForm.vue b/client/src/components/ObjectStore/Instances/UpgradeForm.vue
index c3285eda662a..8bd3917a6072 100644
--- a/client/src/components/ObjectStore/Instances/UpgradeForm.vue
+++ b/client/src/components/ObjectStore/Instances/UpgradeForm.vue
@@ -2,7 +2,7 @@
import { BAlert } from "bootstrap-vue";
import { computed, ref } from "vue";
-import { upgradeForm, upgradeFormDataToPayload } from "@/components/ConfigTemplates/formUtil";
+import { type FormEntry, upgradeForm, upgradeFormDataToPayload } from "@/components/ConfigTemplates/formUtil";
import { errorMessageAsString } from "@/utils/simple-error";
import type { ObjectStoreTemplateSummary } from "../Templates/types";
@@ -20,7 +20,7 @@ interface Props {
const error = ref(null);
const props = defineProps();
-const inputs = computed | null>(() => {
+const inputs = computed | undefined>(() => {
const realizedInstance: UserConcreteObjectStore = props.instance;
const realizedLatestTemplate = props.latestTemplate;
const form = upgradeForm(realizedLatestTemplate, realizedInstance);