Skip to content
4 changes: 4 additions & 0 deletions packages/connect-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!-- markdownlint-disable MD024 -->
# Changelog

# [1.0.0-preview.12] - 2024-12-13

- Don't throw when validating unexpected values from the api

# [1.0.0-preview.11] - 2024-12-13

- Make prop validation more consistent with app behavior
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/connect-react",
"version": "1.0.0-preview.11",
"version": "1.0.0-preview.12",
"description": "Pipedream Connect library for React",
"files": [
"dist"
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-react/src/utils/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ export function valuesFromOptions<T>(value: unknown | T[] | PropOptions<T>): T[]
results.push(emitValue as T)
}
} else {
throw "unexpected value"
return []
}
}
return results
}
if (!Array.isArray(value))
throw "unexpected value"
return []
return value as T[]
}

Expand Down
Loading