Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update API.js
Browse files Browse the repository at this point in the history
SergTyapkin authored Jul 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e3b691e commit bcf6c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/API.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ export default class MY_API extends REST_API {
data = Object.assign({}, data);
const _model = data._model;
delete data._model;
const {ok, data: dataRes, status} = await requestFunc.bind(this.__proto__)(path, data);
const {ok, data: dataRes, status} = await requestFunc.bind(this)(path, data);
if (!ok) {
return {ok, data: dataRes, status};
}

0 comments on commit bcf6c4d

Please sign in to comment.