Browse Source

fix: avoid mutating hooks meta object

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/764/head
Pranav C 3 years ago
parent
commit
7f01d50d2a
  1. 3
      packages/nocodb/src/lib/noco/common/BaseModel.ts

3
packages/nocodb/src/lib/noco/common/BaseModel.ts

@ -311,7 +311,8 @@ class BaseModel<T extends BaseApiBuilder<any>> extends BaseModelSql {
}
}
private axiosRequestMake(apiMeta, apiReq, data) {
private axiosRequestMake(_apiMeta, apiReq, data) {
const apiMeta = { ..._apiMeta };
if (apiMeta.body) {
try {
apiMeta.body = JSON.parse(apiMeta.body, (_key, value) => {

Loading…
Cancel
Save