chore: show bounding box only when flag is true (#6490)

This commit is contained in:
Aakansha Doshi 2023-04-19 17:02:20 +05:30 committed by GitHub
parent ff3c2e5a16
commit 98a77d7426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -864,7 +864,8 @@ const drawElementFromCanvas = (
);
if (
process.env.REACT_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX &&
process.env.REACT_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX ===
"true" &&
hasBoundTextElement(element)
) {
const coords = getContainerCoords(element);