Feat/error boundaries (#2779)
* - Changed to objectNameSingular always defined - Added ErrorCatchAll * - Added mock mode for companies logged out - Added a proper ErrorBoundary component * Removed react-error-boundary * Implemented proper ErrorBoundary * Fixes * Change strategy about mocks --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
co-authored by
Charles Bochet
parent
a301f451f9
commit
74b077f3ca
+2
-2
@@ -79,7 +79,7 @@ export const SettingsObjectNewFieldStep2 = () => {
|
||||
});
|
||||
|
||||
useFindManyRecords({
|
||||
objectNamePlural: 'views',
|
||||
objectNameSingular: 'view',
|
||||
filter: {
|
||||
type: { eq: ViewType.Table },
|
||||
objectMetadataId: { eq: activeObjectMetadataItem?.id },
|
||||
@@ -94,7 +94,7 @@ export const SettingsObjectNewFieldStep2 = () => {
|
||||
});
|
||||
|
||||
useFindManyRecords({
|
||||
objectNamePlural: 'views',
|
||||
objectNameSingular: 'view',
|
||||
skip: !formValues.relation?.objectMetadataId,
|
||||
filter: {
|
||||
type: { eq: ViewType.Table },
|
||||
|
||||
Reference in New Issue
Block a user