Skip to content

Conversation

@ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Oct 20, 2025

When triggering the example dag 'Params trigger Ui' via the UI, the form crashed with:
TypeError: Cannot read properties of null (reading 'value') at src/queries/useParamStore.ts:setParamsDict

This was because the useDagParams returned raw
backend params(plain values that can be null), but setParamsDict expects each entry to be a ParamSpec with a .value. When a value was null, destructuring { value } caused the crash.

The fix was to normalize data.params in useDagParams.ts to ParamSpec objects

TypeError: Cannot read properties of null (reading 'value') at http://localhost:5173/src/queries/useParamStore.ts:74:114 at Array.map (<anonymous>) at http://localhost:5173/src/queries/useParamStore.ts:74:101 at setState (http://localhost:5173/node_modules/.vite/deps/zustand.js?v=8d3b6c72:13:55) at setParamsDict (http://localhost:5173/src/queries/useParamStore.ts:73:45) at http://localhost:5173/src/components/FlexibleForm/FlexibleForm.tsx:69:13 at Object.react_stack_bottom_frame (http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=8d3b6c72:17486:20) at runWithFiberInDEV (http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=8d3b6c72:1485:72) at commitHookEffectListMount (http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=8d3b6c72:8460:122) at commitHookPassiveMountEffects (http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=8d3b6c72:8518:60)

When triggering the example dag 'Params trigger Ui' via the UI,
the form crashed with:
TypeError: Cannot read properties of null (reading 'value')
at src/queries/useParamStore.ts:setParamsDict

This was because the `useDagParams` returned raw
backend params(plain values that can be null), but `setParamsDict`
expects each entry to be a ParamSpec with a .value.
When a value was null, destructuring { value } caused the crash.

The fix was to normalize `data.params` in `useDagParams.ts` to ParamSpec objects
@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Oct 20, 2025
@ephraimbuddy
Copy link
Contributor Author

Another error type:

Screenshot 2025-10-20 at 17 32 49

Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this affect only main or also 3.1?

@uranusjr
Copy link
Member

Does #56831 affect this?

@ephraimbuddy
Copy link
Contributor Author

Does this affect only main or also 3.1?

No. Doesn't affect 3.1

@eladkal eladkal added this to the Airflow 3.2.0 milestone Oct 21, 2025
@ephraimbuddy
Copy link
Contributor Author

Does #56831 affect this?

Yea, fixed by that too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants