fix: assignment issues

This commit is contained in:
Jannat Patel
2022-11-01 14:39:30 +05:30
parent 9133a3f50b
commit 59b8c781e3
2 changed files with 3 additions and 1 deletions

View File

@@ -542,11 +542,13 @@ const make_editor = () => {
const set_file_type = () => {
let self = this;
let file_type = $("#file-type").data("type");
if (file_type) {
$("#file-type option").each((i, elem) => {
if ($(elem).val() == file_type) {
$(elem).attr("selected", true);
self.file_type = file_type;
}
})
}