Bugfixes - Editor images, git-gateway auth, editor scrolling, numeric selects, object/list previews (#50)
* v1.0.0-alpha26
This commit is contained in:
committed by
GitHub
parent
1de3d52d57
commit
8c8a59093d
@ -76,9 +76,14 @@ const emptyAsset = createAssetProxy({
|
||||
}),
|
||||
});
|
||||
|
||||
export function getAsset(collection: Collection, entry: Entry, path: string, field?: Field) {
|
||||
export function getAsset(
|
||||
collection: Collection | null | undefined,
|
||||
entry: Entry | null | undefined,
|
||||
path: string,
|
||||
field?: Field,
|
||||
) {
|
||||
return (dispatch: ThunkDispatch<RootState, {}, AnyAction>, getState: () => RootState) => {
|
||||
if (!path) {
|
||||
if (!collection || !entry || !path) {
|
||||
return emptyAsset;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user