fix: signyourself pdf render issue

This commit is contained in:
RaktimaNXG
2024-02-12 19:02:33 +05:30
parent 60ba77a06f
commit 3910486b17
5 changed files with 13 additions and 6 deletions
@@ -376,7 +376,7 @@ function Placeholder(props) {
onTouchEnd={(e) => {
e.stopPropagation();
if (props.data) {
props.handleDeleteSign(props.pos.key, props.data.Id);
props.handleDeleteSign(props.pos.key, props.data?.Id);
} else {
props.handleDeleteSign(props.pos.key);
props.setIsStamp(false);
@@ -473,7 +473,7 @@ function Placeholder(props) {
}
onDragStop={(event, dragElement) =>
props.handleStop &&
props.handleStop(event, dragElement, props.data.Id, props.pos.key)
props.handleStop(event, dragElement, props.data?.Id, props.pos?.key)
}
default={{
x: props.xPos(props.pos, props.isSignYourself),