yusuketk 5 лет назад
Родитель
Сommit
e091de97a0
1 измененных файлов с 1 добавлено и 1 удалено
  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) {