fix: broken component import in prod

This commit is contained in:
liyasthomas
2021-08-24 09:14:46 +05:30
parent f20fed444a
commit 12c28f4efc
75 changed files with 254 additions and 153 deletions

View File

@@ -33,10 +33,10 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import { editGraphqlFolder } from "~/newstore/collections"
export default Vue.extend({
export default defineComponent({
props: {
show: Boolean,
folder: { type: Object, default: () => {} },
@@ -44,7 +44,7 @@ export default Vue.extend({
},
data() {
return {
name: null,
name: "",
}
},
methods: {
@@ -55,11 +55,14 @@ export default Vue.extend({
})
return
}
editGraphqlFolder(this.folderPath, { ...this.folder, name: this.name })
editGraphqlFolder(this.folderPath, {
...(this.folder as any),
name: this.name,
})
this.hideModal()
},
hideModal() {
this.name = null
this.name = ""
this.$emit("hide-modal")
},
},