Bugfixes - Editor images, git-gateway auth, editor scrolling, numeric selects, object/list previews (#50)

* v1.0.0-alpha26
This commit is contained in:
Daniel Lautzenheiser
2022-10-27 12:24:30 -04:00
committed by GitHub
parent 1de3d52d57
commit 8c8a59093d
47 changed files with 794 additions and 942 deletions

View File

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