|
|
@@ -32,11 +32,14 @@ class PageAttachment extends React.Component {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- this.props.appContainer.apiGet('/attachments.list', { page_id: pageId })
|
|
|
+ this.props.appContainer.apiv3Get('/attachment/list', { pageId })
|
|
|
.then((res) => {
|
|
|
- const attachments = res.attachments;
|
|
|
+ const attachments = res.data.attachments;
|
|
|
const inUse = {};
|
|
|
|
|
|
+ console.log(res);
|
|
|
+ console.log(res.data.attachments);
|
|
|
+
|
|
|
for (const attachment of attachments) {
|
|
|
inUse[attachment._id] = this.checkIfFileInUse(attachment);
|
|
|
}
|