fix(sites): remove toRefs shadowing causing [object Object] in site name field
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, toRefs } from 'vue'
|
||||
import { computed } from 'vue'
|
||||
import { isImageDocument } from '~/utils/documentPreview'
|
||||
import DocumentUpload from '~/components/DocumentUpload.vue'
|
||||
import SiteContactFormFields from '~/components/sites/SiteContactFormFields.vue'
|
||||
@@ -173,8 +173,6 @@ const emit = defineEmits([
|
||||
'update:selectedFiles'
|
||||
])
|
||||
|
||||
const form = toRefs(props.form)
|
||||
|
||||
const selectedFilesModel = computed({
|
||||
get: () => props.selectedFiles,
|
||||
set: value => emit('update:selectedFiles', value)
|
||||
|
||||
Reference in New Issue
Block a user