fix csv icon export

This commit is contained in:
binsky 2023-06-28 02:31:59 +02:00
parent 0ebbfefa53
commit c4ccaa78c4
No known key found for this signature in database
GPG key ID: B438F7FA2E3AC98F

View file

@ -66,7 +66,7 @@ PassmanExporter.csv.export = function (credentials, FileService, EncryptService,
}
const tag_data = '[' + _tags.join(",") + ']';
row_data.push('"' + tag_data.replaceAll('"', '""') + '"');
} else if (field === 'custom_fields' || field === 'files' || field === 'otp') {
} else if (field === 'custom_fields' || field === 'files' || field === 'otp' || field === 'icon') {
let _fields = JSON.stringify(_credential[field]);
_fields = _fields.replaceAll('"', '""');
row_data.push('"' + _fields + '"');