Skip to content

Commit 9e89086

Browse files
author
pipedrive-bot
committed
Build 1539 - version-patch
1 parent bf35470 commit 9e89086

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
77
For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
88

99
## [Unreleased]
10+
### Changed
11+
- Updated endpoint descriptions to warn about permanently removing deleted entities:
12+
- `DELETE /activities`
13+
- `DELETE /activities/{id}`
14+
- `DELETE /deals`
15+
- `DELETE /deals/{id}`
16+
- `DELETE /files/{id}`
17+
- `DELETE /organizations`
18+
- `DELETE /organizations/{id}`
19+
- `DELETE /persons`
20+
- `DELETE /persons/{id}`
21+
- `DELETE /products/{id}`
22+
- Updated `conditions` parameter description for `POST /filters` and `PUT /filters/{id}`
1023

1124
## 17.5.2
1225
### Changed

src/ApiClient.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@ class ApiClient {
568568
for (const key in obj) {
569569
let keyValue = obj[key];
570570
const isArray = Array.isArray(keyValue);
571-
const isObject = typeof keyValue === 'object' && !isArray;
571+
const isNull = keyValue === null;
572+
const isObject = typeof keyValue === 'object' && !isArray && !isNull;
572573
const isHash = /^[a-f0-9]{40}$|^[a-f0-9]{40}_[a-z0-9]+$/i.test(key);
573574

574575
if (isArray) keyValue = keyValue.map(kv => typeof kv === 'object' ? this.replaceCamelCaseObj(kv) : kv);

0 commit comments

Comments
 (0)