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