[WEB-857] regression: image uploader error state #8471

This commit is contained in:
Aaryan Khandelwal 2025-12-30 14:35:52 +05:30 committed by GitHub
parent 9141a9377f
commit 031baaa162
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,8 +168,7 @@ export function CustomImageUploader(props: CustomImageUploaderProps) {
[uploadFile, editor, getPos]
);
// const isErrorState = failedToLoadImage || hasDuplicationFailed;
const isErrorState = true;
const isErrorState = failedToLoadImage || hasDuplicationFailed;
const borderColor =
selected && editor.isEditable && !isErrorState