improve (exif): the more button only appear when there's something to show

This commit is contained in:
Mickael KERJEAN 2019-03-19 00:59:01 +11:00
parent 5afe004d11
commit 3e32c4e1f0

View file

@ -88,7 +88,7 @@ class Exif extends React.Component {
metadata['PixelXDimension'],
metadata['PixelYDimension']
] || null,
all: metadata
all: Object.keys(metadata).length === 0 ? null : metadata
});
});