fix: updates

This commit is contained in:
lohxt1 2024-11-14 10:56:15 +05:30
parent 7e16d0ea27
commit 89b11149bf

View File

@ -43,7 +43,7 @@ const RenameCollectionItem = ({ collection, item, onClose }) => {
onSubmit: async (values) => { onSubmit: async (values) => {
// if there is unsaved changes in the request, // if there is unsaved changes in the request,
// save them before renaming the request // save them before renaming the request
if ((item.name === values.name) && (itemFilename === values.filename) { if ((item.name === values.name) && (itemFilename === values.filename)) {
return; return;
} }
if (!isFolder && item.draft) { if (!isFolder && item.draft) {