@@ -84,17 +84,19 @@ export default {
type
);
- if (!item) {
+ if (type === "xml" && !item) {
item = this.attachmentList.find(
(i) =>
i.fileName.slice(
i.fileName.lastIndexOf(".") + 1
) === "xosc"
- item = {};
- }
}
+
+ if (!item) {
+ item = {};
+ }
data[type + "Address"] = item.fileName || "";
},