Update js/src/common/Store.ts

Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
Alexander Skvortsov 2021-12-12 14:56:01 -05:00 committed by Alexander Skvortsov
parent 9fc6a2333d
commit b460b8b5da

View File

@ -175,14 +175,12 @@ export default class Store {
return app
.request<M extends Array<infer _T> ? ApiPayloadPlural : ApiPayloadSingle>(
Object.assign(
{
method: 'GET',
url,
params,
},
options
)
{
method: 'GET',
url,
params,
...options,
}
)
.then((payload) => {
if (payloadIsPlural(payload)) {