Procházet zdrojové kódy

determine whether the "In Use" badge is displayed or not by attachment id

Yuki Takei před 5 roky
rodič
revize
bdc19bf773
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/client/js/components/PageAttachment.jsx

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

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