Skip to content

CELE-148 Fix missing await for async workspace creation#111

Merged
ddelpiano merged 3 commits into
developfrom
feature/CELE-148
Aug 29, 2025
Merged

CELE-148 Fix missing await for async workspace creation#111
ddelpiano merged 3 commits into
developfrom
feature/CELE-148

Conversation

@aranega

@aranega aranega commented Aug 27, 2025

Copy link
Copy Markdown
Member

No description provided.

@aranega aranega requested review from Copilot and ddelpiano August 27, 2025 14:23

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes a missing await for async workspace creation and adds optional chaining for safe property access. The main issue addressed is ensuring that the createWorkspace function is properly awaited when called from UI components.

  • Added optional chaining to prevent potential null/undefined access errors
  • Updated function signature to properly reflect async nature
  • Added await to async workspace creation call
  • Minor UI layout adjustments for better flex display

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
workspace.ts Added optional chaining for safe property access on firstActiveDataset
GlobalContext.tsx Updated createWorkspace function signature to return Promise<void>
CreateNewWorkspaceDialog.tsx Made handleSubmit async and added await to createWorkspace call
DataSets.tsx Updated layout styling with flex display and removed fixed height constraint

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ddelpiano ddelpiano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@ddelpiano ddelpiano merged commit 3cc00f2 into develop Aug 29, 2025
11 checks passed
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