Skip to content

Improvement: Account for temporary nodes in the tree view#233

Merged
tnaum-ms merged 1 commit into
nextfrom
dev/tnaum/temporary-tree-items-fix
Aug 25, 2025
Merged

Improvement: Account for temporary nodes in the tree view#233
tnaum-ms merged 1 commit into
nextfrom
dev/tnaum/temporary-tree-items-fix

Conversation

@tnaum-ms
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings August 25, 2025 08:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the robustness of tree view operations by handling temporary nodes that may not have string IDs. The change prevents runtime errors when checking for retry nodes in tree elements that include temporary nodes created by showCreatingChild.

Key Changes:

  • Added type guard to safely check for string IDs before calling string methods
  • Added explanatory comment documenting the necessity of the type check

Comment thread src/tree/documentdb/ClusterItemBase.ts
@tnaum-ms tnaum-ms force-pushed the dev/tnaum/temporary-tree-items-fix branch from 4581442 to c9273e1 Compare August 25, 2025 08:26
@tnaum-ms tnaum-ms added this to the 0.3.1 "August 2025" milestone Aug 25, 2025
@tnaum-ms tnaum-ms added the bug Something isn't working label Aug 25, 2025
@tnaum-ms tnaum-ms self-assigned this Aug 25, 2025
@tnaum-ms tnaum-ms merged commit 2f1e976 into next Aug 25, 2025
8 checks passed
@tnaum-ms tnaum-ms deleted the dev/tnaum/temporary-tree-items-fix branch August 25, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

3 participants