Просмотр исходного кода

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

Yuki Takei 5 лет назад
Родитель
Сommit
bdc19bf773
1 измененных файлов с 1 добавлено и 1 удалено
  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) {
   checkIfFileInUse(attachment) {
     const { markdown } = this.props.pageContainer.state;
     const { markdown } = this.props.pageContainer.state;
 
 
-    if (markdown.match(attachment.filePathProxied)) {
+    if (markdown.match(attachment._id)) {
       return true;
       return true;
     }
     }
     return false;
     return false;