fix(integration-asset-store): fix react-waypoint import (#4848)
This commit is contained in:
parent
5b4e2ee99f
commit
6611cb5253
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import styled from '@emotion/styled';
|
||||
import Waypoint from 'react-waypoint';
|
||||
import { Waypoint } from 'react-waypoint';
|
||||
import MediaLibraryCard from './MediaLibraryCard';
|
||||
import { Map } from 'immutable';
|
||||
import { colors } from 'netlify-cms-ui-default';
|
||||
|
@ -81,7 +81,7 @@ export default class AssetStore {
|
||||
};
|
||||
const response = await this.request(url, { headers });
|
||||
const files = response.map(({ id, name, size, url }) => {
|
||||
return { id, name, size, displayURL: url, url };
|
||||
return { id, name, size, displayURL: url, url, path: url };
|
||||
});
|
||||
return files;
|
||||
}
|
||||
@ -136,7 +136,7 @@ export default class AssetStore {
|
||||
await this.confirmRequest(id);
|
||||
}
|
||||
|
||||
const asset = { id, name, size, displayURL: url, url };
|
||||
const asset = { id, name, size, displayURL: url, url, path: url };
|
||||
return { success: true, asset };
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user