Skip to content

Write a clear, concise title (e.g., "Fix: Style Prop Typo and Data Safety Checks in Clients.js"). - #93

Open
Sriharipriya897 wants to merge 1 commit into
panshak:masterfrom
Sriharipriya897:master
Open

Write a clear, concise title (e.g., "Fix: Style Prop Typo and Data Safety Checks in Clients.js").#93
Sriharipriya897 wants to merge 1 commit into
panshak:masterfrom
Sriharipriya897:master

Conversation

@Sriharipriya897

Copy link
Copy Markdown

This PR addresses two primary issues in the Clients.js component:

Fixes a typo in the TableRow component: Corrected the typo styel to the proper React attribute style to ensure the cursor change and other inline styles are applied correctly.

Adds defensive programming/safety checks: Implemented optional chaining (?) and null-coalescing (|| 0) when accessing properties of the clients prop (e.g., rows?.length and in the rowsPerPage state initialization). This prevents the component from crashing or throwing errors if the client data is initially null or undefined while it is loading from the Redux store.

@netlify

netlify Bot commented Oct 9, 2025

Copy link
Copy Markdown

👷 Deploy request for accountill pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1fa8d7e

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants