Browse Source

redundant code removed

Steven Fukase 4 năm trước cách đây
mục cha
commit
d0579ffeb9
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/client/js/components/PageEditor/LinkEditModal.jsx

+ 0 - 1
src/client/js/components/PageEditor/LinkEditModal.jsx

@@ -224,7 +224,6 @@ class LinkEditModal extends React.PureComponent {
   }
 
   handleChangeLinkInput(link) {
-    this.setState({ linkInputValue: link, isUseRelativePath: false, isUsePermanentLink: false });
     let isUseRelativePath = this.state.isUseRelativePath;
     if (!this.state.linkInputValue.startsWith('/') || this.state.linkerType === Linker.types.growiLink) {
       isUseRelativePath = false;