Browse Source

BugFix: PageAttachment.checkIfFileInUse

Yuki Takei 7 years ago
parent
commit
0646a62b20
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/client/js/components/PageAttachment.jsx

+ 1 - 1
src/client/js/components/PageAttachment.js → src/client/js/components/PageAttachment.jsx

@@ -49,7 +49,7 @@ class PageAttachment extends React.Component {
   }
   }
 
 
   checkIfFileInUse(attachment) {
   checkIfFileInUse(attachment) {
-    const { markdown } = this.pageContainer.state;
+    const { markdown } = this.props.pageContainer.state;
 
 
     if (markdown.match(attachment.filePathProxied)) {
     if (markdown.match(attachment.filePathProxied)) {
       return true;
       return true;