Skip to content

Commit

Permalink
fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Aug 13, 2024
1 parent 3a9a570 commit 0361bea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/CSVReference.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<v-btn
class="flex ma-2"
target="_blank"
variant="test"
append-icon="mdi-open-in-new"
href="https://github.com/internetofwater/geoconnex.us/blob/master/namespaces/iow/demo.csv"
>1:1 example</v-btn
Expand Down
2 changes: 1 addition & 1 deletion src/components/MetadataGenerator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { fetchAllNamespaces } from '@/lib/helpers'
variant="outlined" type="email" hint="Example: [email protected]"></v-text-field>
</div>

<v-alert type="error w-50 mx-auto" v-if="!valid" icon="mdi-alert">
<v-alert type="error" class="w-50 mx-auto" v-if="!valid" icon="mdi-alert">
{{ error }}
</v-alert>

Expand Down
2 changes: 1 addition & 1 deletion src/components/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</template>


<script setup>
<script setup lang="ts">
import { useTheme } from 'vuetify'
const theme = useTheme()
Expand Down
8 changes: 4 additions & 4 deletions src/components/UploadForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import { validGeoconnexCSV } from '@/lib/helpers'
import type { ValidationReport } from '@/lib/types'

interface CheckError {
type: 'Issues Checking CSV' | 'Error submitting data' | 'Checked CSV without errors' | null
type: 'Issues Checking CSV' | 'Error submitting data' | 'Checked CSV without errors' | undefined
text: string
level?: 'error' | 'warning' | 'info'
}
Expand All @@ -110,7 +110,7 @@ export default defineComponent({

methods: {
async checkValid() {
this.checkError = { type: null, text: '' }
this.checkError = { type: undefined, text: '' }
this.crawlErrors = []

if (!this.file) {
Expand Down Expand Up @@ -147,7 +147,7 @@ export default defineComponent({
},
overrideError() {
this.hideSubmission = false
this.checkError = { type: null, text: '' }
this.checkError = { type: undefined, text: '' }
this.crawlErrors = []
},
setMetadata(metadata : { readme: File | null, namespace: string }) {
Expand All @@ -158,7 +158,7 @@ export default defineComponent({

async submitForm() {
// Reset form state before submitting
this.checkError = { type: null, text: '' }
this.checkError = { type: undefined, text: '' }
this.result = ''
this.progress = { running: false, action: '' }

Expand Down

0 comments on commit 0361bea

Please sign in to comment.