Explorar o código

Merge pull request #2678 from weseek/fix/send-api-get-page-always-when-edit

fix send-api-get-page-always-when-edit
Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
57aab89209
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/client/js/components/PageEditor/LinkEditModal.jsx

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

@@ -56,7 +56,7 @@ class LinkEditModal extends React.PureComponent {
     this.getPreviewDebounced = debounce(200, this.getPreview.bind(this));
   }
 
-  componentDidUpdate(prevState) {
+  componentDidUpdate(prevProps, prevState) {
     const { linkInputValue: prevLinkInputValue } = prevState;
     const { linkInputValue } = this.state;
     if (linkInputValue !== prevLinkInputValue) {