mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-05 00:27:02 +02:00
fix: stale appState.pendingImageElement
(#5322)
* fix: stale `appState.pendingImageElement` * unrelated fix for devTools race conditions * snap fix
This commit is contained in:
@@ -45,7 +45,7 @@ const getHints = ({ appState, elements, isMobile }: HintViewerProps) => {
|
||||
return t("hints.text");
|
||||
}
|
||||
|
||||
if (appState.activeTool.type === "image" && appState.pendingImageElement) {
|
||||
if (appState.activeTool.type === "image" && appState.pendingImageElementId) {
|
||||
return t("hints.placeImage");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user