check if info array is empty (#3442)

This commit is contained in:
Artur Paikin 2022-01-20 15:14:11 +00:00 committed by GitHub
parent 3c2d76f960
commit cfaf2acf4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -772,7 +772,7 @@ module.exports = class Dashboard extends UIPlugin {
const isFocusInUppy = this.el.contains(document.activeElement)
// When focus is lost on the page (== focus is on body for most browsers, or focus is null for IE11)
const isFocusNowhere = document.activeElement === document.body || document.activeElement === null
const isInformerHidden = this.uppy.getState().info.isHidden
const isInformerHidden = this.uppy.getState().info.length === 0
const isModal = !this.opts.inline
if (