Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Reducers ids create content success payload doesn't have result property #87

Closed
zoltanbedi opened this issue May 20, 2018 · 1 comment
Closed

Comments

@zoltanbedi
Copy link
Contributor

In reducers line 210 the action.payload doesn't have a result property.

export const createContent = <T extends IContent = IContent>(parentPath: string, content: T, contentType: string) => ({
    type: 'CREATE_CONTENT',
    // tslint:disable:completed-docs
    async payload(repository: Repository): Promise<IODataResponse<T>> {
        const data = await repository.post<T>({ parentPath, content, contentType })
        return data
    },
})

Create content returns an IODataResponse.

@herflis
Copy link
Contributor

herflis commented May 31, 2018

@B3zo0 thanks for the request. It is fixed now in version 4.1.0

@herflis herflis closed this as completed May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants