Skip to content

Commit b6a7d37

Browse files
committed
Fix a bug with async prop value validation
1 parent 6e6631e commit b6a7d37

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

packages/connect-react/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<!-- markdownlint-disable MD024 -->
22
# Changelog
33

4+
# [1.0.0-preview.21] - 2025-01-17
5+
6+
- Fix a bug in async prop value validation when the prop is a string
7+
48
# [1.0.0-preview.20] - 2025-01-16
59

610
- Check if a string prop is set instead of inspecting the contents of the string

packages/connect-react/examples/nextjs/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/connect-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/connect-react",
3-
"version": "1.0.0-preview.20",
3+
"version": "1.0.0-preview.21",
44
"description": "Pipedream Connect library for React",
55
"files": [
66
"dist"

packages/connect-react/src/utils/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function stringPropErrors(opts: ValidationOpts<ConfigurablePropString>):
9898
prop, value: valueOpt,
9999
} = opts
100100

101-
if (!prop.default && (valueOpt == null || typeof value === "undefined")) return [
101+
if (!prop.default && (valueOpt == null || typeof valueOpt === "undefined")) return [
102102
"required",
103103
]
104104
}

pnpm-lock.yaml

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)