Skip to content

Commit 697a948

Browse files
committed
Update if both are empty
1 parent 9330f3c commit 697a948

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/controls/canvas/DrawPad.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ export const DrawPad: React.FunctionComponent<iProps> = (props) => {
121121
: isNotEmptyString(props.DefaultBackdrop)
122122
? props.DefaultBackdrop
123123
: "";
124-
if (canvasValue !== neededValue) {
124+
if (canvasValue !== neededValue ||
125+
(
126+
isNullOrEmptyString(canvasValue) &&
127+
isNullOrEmptyString(neededValue)
128+
)
129+
) {
125130
UpdateCanvas(neededValue);//if called repeatedly or too fast - may not load correctly
126131
}
127132
}

0 commit comments

Comments
 (0)