From 0f434fc5a8f8d85682ee21fea683cf107ec35218 Mon Sep 17 00:00:00 2001 From: noumantahir Date: Fri, 10 Sep 2021 21:30:25 +0500 Subject: [PATCH] comparing post permlink for duplication instead of checking for id the id is undefined in the post data returned, checking for permlink seems like a more reliable. --- src/screens/editor/container/editorContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/editor/container/editorContainer.tsx b/src/screens/editor/container/editorContainer.tsx index 80fd59561..3f83a5f76 100644 --- a/src/screens/editor/container/editorContainer.tsx +++ b/src/screens/editor/container/editorContainer.tsx @@ -601,7 +601,7 @@ class EditorContainer extends Component { dublicatePost = null; } - if (dublicatePost && dublicatePost.id) { + if (dublicatePost && (dublicatePost.permlink === permlink)) { permlink = generatePermlink(fields.title, true); }