From 6544ec2e6c6e6c6efd89a8648bf4950ce4b9a05f Mon Sep 17 00:00:00 2001 From: Bhav Beri Date: Fri, 20 Dec 2024 13:06:32 +0530 Subject: [PATCH] Minor change in DocForm (testing) --- src/components/docs/DocForm.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/docs/DocForm.jsx b/src/components/docs/DocForm.jsx index 4f8ab5db..96f706c0 100644 --- a/src/components/docs/DocForm.jsx +++ b/src/components/docs/DocForm.jsx @@ -155,6 +155,8 @@ export default function DocForm({ editFile = null, newFile = true }) { }; const generateSubmitDescription = () => { + if (newFile) return null; + const latestVersion = editFile?.latestVersion || 1; const newVersion = handleVersionNumbering(editFile);