Skip to content

Commit

Permalink
More descriptive naming: form -> formXML
Browse files Browse the repository at this point in the history
Same reasoning as earlier commit changing `form` -> `formName`
  • Loading branch information
eyelidlessness authored and sadiqkhoja committed Sep 11, 2024
1 parent 82736a7 commit 6f01827
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/web-forms/src/demo/FormPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ const categoryParam = route.params.category as string;
const formParam = route.params.form as string;
const formPath = `../../../ui-solid/fixtures/xforms/${categoryParam}/${formParam}`;
const form = ref();
const formXML = ref<string>();
formFixtureGlobImports[formPath]()
.then((xml:string) => {
form.value = xml;
formXML.value = xml;
})
.catch(() => {
alert('Failed to load the Form XML');
Expand All @@ -31,7 +32,7 @@ const handleSubmit = () => {
</script>

<template>
<OdkWebForm v-if="form" :form-xml="form" @submit="handleSubmit" />
<OdkWebForm v-if="formXML" :form-xml="formXML" @submit="handleSubmit" />
<div v-else>
Loading...
</div>
Expand Down

0 comments on commit 6f01827

Please sign in to comment.