Explorar o código

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

Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
bdc19bf773
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;