diff --git a/src/components/general/upload_file.vue b/src/components/general/upload_file.vue index 54d6f30eaa6d9919819853c7f33f8e8e5aa8b7f4..5e3d904f3bc3a7eac7551c21db59b87e54841856 100644 --- a/src/components/general/upload_file.vue +++ b/src/components/general/upload_file.vue @@ -109,11 +109,8 @@ export default { }, }, created() { - if (this.directory) { - this.anotherData = { - directory: this.directory, - "unique-code": this.unique ? "" : "false", - }; + if (!this.unique) { + this.anotherData.uniqueCode = this.unique; } }, methods: {