Quellcode durchsuchen

BugFix: PageAttachment.checkIfFileInUse

Yuki Takei vor 6 Jahren
Ursprung
Commit
0646a62b20
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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) {
-    const { markdown } = this.pageContainer.state;
+    const { markdown } = this.props.pageContainer.state;
 
     if (markdown.match(attachment.filePathProxied)) {
       return true;