@dataloop-ai/components 0.20.81 → 0.20.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.20.81",
3
+ "version": "0.20.82",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -162,7 +162,7 @@ export function replaceJSDatesWithStringifiedDates(
162
162
  } else {
163
163
  toReturn[key] = formatToStringDate(value)
164
164
  }
165
- } else if (typeof value === 'object') {
165
+ } else if (value && typeof value === 'object') {
166
166
  toReturn[key] = replaceJSDatesWithStringifiedDates(
167
167
  toReturn[key],
168
168
  dateKeys
@@ -275,7 +275,9 @@ export const stringifySmartQuery = (query: { [key: string]: any }): string => {
275
275
  result += ' AND '
276
276
  }
277
277
 
278
- if (isObject(value)) {
278
+ if (value === null) {
279
+ result += `${key} = null`
280
+ } else if (isObject(value)) {
279
281
  for (const operator in value) {
280
282
  if (value.hasOwnProperty(operator)) {
281
283
  let operatorValue = (