|
@@ -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;
|