const asyncFillWidget = ( { payload : fill , widget } ) => async ( _dispatch , _getState , { api } ) => { const endpoint = `/widgets/${ widget . id }/fill` ; const body = { fill } ; return api . post ( endpoint , body ) ; } ; export default asyncFillWidget ;