mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
Early-returns in both gallery-drop handlers when the item's mediaClass is "video" and the active tab can't render video: - 3D tab: already branches image vs dimensional; video would fall into the image branch and try to uploadPlaneFromMediaToken against a video URL. Skip it. - 2D / Konva moodboard: their drop listeners call addImage unconditionally, which would load the video URL into an HTMLImageElement and fail. Skip unless the active tab is MOODBOARD_HTML. Gallery drag is globally enabled in the sibling commit, so this is the failsafe that keeps drops on non-video tabs from producing broken state.