attachment&gallery: code: use === instead of ==
This commit is contained in:
parent
68eab91db8
commit
f40fdf1240
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ const Gallery = {
|
|||
: attachments
|
||||
.reduce(
|
||||
(acc, attachment, i) => {
|
||||
if (attachment.type == 'audio') {
|
||||
if (attachment.type === 'audio') {
|
||||
return [
|
||||
...acc,
|
||||
{ audio: true, items: [attachment] },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue