Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use object metadata item #7297

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

bosiraphael
Copy link
Contributor

Fixes a bug which happened during workspace creation and remove duplicated code

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request simplifies object metadata handling, particularly during workspace creation, by removing unnecessary checks and providers.

  • Removed loading state dependency in ObjectMetadataItemsLoadEffect, potentially leading to more frequent updates
  • Simplified useObjectMetadataItem hook by removing inactive workspace handling and mock data logic
  • Removed ObjectMetadataItemsProvider from PageDecorator, streamlining the component structure
  • These changes may affect application behavior during workspace creation or when dealing with inactive workspaces

3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

objectMetadataItemFamilySelector({
objectName: objectNameSingular,
objectNameType: 'singular',
}),
);

let objectMetadataItems = useRecoilValue(objectMetadataItemsState);

if (currentWorkspace?.activationStatus !== WorkspaceActivationStatus.Active) {
Copy link
Member

Choose a reason for hiding this comment

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

doesn't this break the skeleton?

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Bravo!

@bosiraphael bosiraphael merged commit 9f47712 into main Sep 27, 2024
7 of 13 checks passed
@bosiraphael bosiraphael deleted the fix-use-object-metadata-item branch September 27, 2024 14:42
harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
Fixes a bug which happened during workspace creation and remove
duplicated code
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