Przeglądaj źródła

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

Yuki Takei 5 lat temu
rodzic
commit
bdc19bf773
1 zmienionych plików z 1 dodań i 1 usunięć
  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;