Skip to content

Commit 8cdc24a

Browse files
refact: Simplify insertFile
1 parent 484d35e commit 8cdc24a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

panel/src/components/Forms/Input/TextareaInput.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,9 @@ export default {
198198
return input.value;
199199
},
200200
async insertFile(files) {
201-
let value = null;
202-
203201
if (files?.length > 0) {
204-
value = await this.insert(
205-
files.map((file) => file.dragText).join("\n\n")
206-
);
202+
await this.insert(files.map((file) => file.dragText).join("\n\n"));
207203
}
208-
209-
return value;
210204
},
211205
async insertUpload(files) {
212206
await this.insertFile(files);

0 commit comments

Comments
 (0)