Skip to content

🔥 The free & Open Source DocuSign alternative

refactor code

RaktimaNXG4f2b0313dec7
diff --git a/apps/OpenSign/src/components/opensigndrive/DriveBody.js b/apps/OpenSign/src/components/opensigndrive/DriveBody.js
index 4a7fde6b0..b0df1a745 100644
--- a/apps/OpenSign/src/components/opensigndrive/DriveBody.js
+++ b/apps/OpenSign/src/components/opensigndrive/DriveBody.js
@@ -371,12 +371,7 @@ function DriveBody(props) {
<div
data-tut={props.dataTutSeventh}
onClick={() => {
- if (rename) {
- inputRef.current.setSelectionRange(
- inputRef.current.value.length,
- inputRef.current.value.length
- );
- } else {
+ if (!rename) {
handleOnclikFolder(data);
}
}}
@@ -439,12 +434,7 @@ function DriveBody(props) {
<div
data-tut={props.dataTutSixth}
onClick={() => {
- if (rename) {
- inputRef.current.setSelectionRange(
- inputRef.current.value.length,
- inputRef.current.value.length
- );
- } else {
+ if (!rename) {
checkPdfStatus(data);
}
}}