Commit 8b5e099
Address code review feedback: add guards for undefined values
- Add guard in useDataScope to return early if dataSource is undefined
- Add validation in table renderer to handle missing accessor properties
- Ensure empty string is displayed instead of undefined values
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 8a395ad commit 8b5e099
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- packages
- components/src/renderers/data-display
- react/src/context
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
0 commit comments