should this be 
`current_resource ? state(current_resource) : {}`