mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -06:00
commit
13704e9f6c
@ -1,2 +1,3 @@
|
||||
* Holger Brunn <mail@hunki-enterprises.com>
|
||||
* Dennis Sluijk <d.sluijk@onestein.nl>
|
||||
* Sebastiano Picchi <sebastiano.picchi@pytech.it>
|
||||
|
@ -334,7 +334,9 @@ odoo.define("/attachment_preview/static/src/js/attachment_preview.js", function
|
||||
|
||||
attachments = _.object(
|
||||
attachments.map((att) => {
|
||||
return parseInt(att.localId.slice(16), 10);
|
||||
const tmp_id = parseInt(att.localId.slice(16), 10);
|
||||
if (tmp_id > 0) return tmp_id;
|
||||
return null;
|
||||
}),
|
||||
attachments.map((at) => {
|
||||
if (at.defaultSource) {
|
||||
|
Loading…
Reference in New Issue
Block a user