Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
smol fix for modal crash
Browse files Browse the repository at this point in the history
  • Loading branch information
xBiei authored and userXinos committed Jun 7, 2022
1 parent 6db7621 commit cab733e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/openImageModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { openModal } = getModule([ 'openModal', 'openModalLazy' ], false);
const ImageModal = getModuleByDisplayName('ImageModal', false);
const MaskedLink = getModuleByDisplayName('MaskedLink', false);
const { ModalRoot, ModalSize } = getModule([ 'ModalRoot' ], false);
const classes = getAllModules([ 'modal', 'image' ], false).find((e) => Object.keys(e).length === 2);
const classes = getAllModules([ 'modal', 'image' ], false).find((e) => Object.keys(e).length === 3);

/**
* @param {Object} opts
Expand Down

0 comments on commit cab733e

Please sign in to comment.