Skip to content

Conversation

@huchenlei
Copy link
Contributor

@huchenlei huchenlei commented Mar 18, 2025

Ref: #3120

This PR is part of the bigger effort to enable strict mode in tsconfig.

┆Issue is synchronized with this Notion page by Unito

@huchenlei huchenlei requested a review from a team as a code owner March 18, 2025 02:28
Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

Thanks for fixing my errors, appreciate it!

key: item.id || item.name
})) as (components['schemas']['Node'] & { key: string })[]
)
Copy link
Contributor

@christian-byrne christian-byrne Mar 18, 2025

Choose a reason for hiding this comment

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

For this, since we only need the key for the purpose of rendering, maybe we can just generate a unique key if the name doesn't exist

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am going to leave this change to you (in a separate PR) as it involves with larger scale logic change

@huchenlei huchenlei merged commit e8997a7 into main Mar 18, 2025
6 of 7 checks passed
@huchenlei huchenlei deleted the ts_strict2 branch March 18, 2025 14:51
christian-byrne added a commit that referenced this pull request May 20, 2025
christian-byrne added a commit that referenced this pull request Sep 19, 2025
Add optional chaining to nodeDef.description access to prevent
"Cannot read properties of undefined (reading 'description')" error
when node type is not found in nodeDefStore.

Follows same pattern as previous fixes in commits:
- 290bf52 (Fix frontend node tooltip error #911)
- e8997a7 (Fix ts-strict errors in Vue components Part 2 #3123)

Fixes CLOUD-FRONTEND-STAGING-1B
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.

3 participants