Fix activity (#11015)
Deprecating unused states and making sure that the ActivityRichText editor loads when activity.bodyV2 is present
This commit is contained in:
@ -1,6 +0,0 @@
|
||||
import { createState } from '@ui/utilities/state/utils/createState';
|
||||
|
||||
export const isNewViewableRecordLoadingState = createState<boolean>({
|
||||
key: 'activities/is-new-viewable-record-loading',
|
||||
defaultValue: false,
|
||||
});
|
||||
@ -24,7 +24,6 @@ export const RecordShowContainer = ({
|
||||
objectRecordId,
|
||||
loading,
|
||||
isInRightDrawer = false,
|
||||
isNewRightDrawerItemLoading = false,
|
||||
}: RecordShowContainerProps) => {
|
||||
const { objectMetadataItem } = useObjectMetadataItem({
|
||||
objectNameSingular,
|
||||
@ -70,7 +69,6 @@ export const RecordShowContainer = ({
|
||||
}}
|
||||
isInRightDrawer={isInRightDrawer}
|
||||
loading={isPrefetchLoading || loading || recordLoading}
|
||||
isNewRightDrawerItemLoading={isNewRightDrawerItemLoading}
|
||||
/>
|
||||
</ShowPageContainer>
|
||||
</>
|
||||
|
||||
@ -17,7 +17,6 @@ import { FieldMetadataType } from '~/generated/graphql';
|
||||
type SummaryCardProps = {
|
||||
objectNameSingular: string;
|
||||
objectRecordId: string;
|
||||
isNewRightDrawerItemLoading: boolean;
|
||||
isInRightDrawer: boolean;
|
||||
};
|
||||
|
||||
@ -25,7 +24,6 @@ type SummaryCardProps = {
|
||||
export const SummaryCard = ({
|
||||
objectNameSingular,
|
||||
objectRecordId,
|
||||
isNewRightDrawerItemLoading,
|
||||
isInRightDrawer,
|
||||
}: SummaryCardProps) => {
|
||||
const { recordLoading, labelIdentifierFieldMetadataItem, isPrefetchLoading } =
|
||||
@ -57,7 +55,7 @@ export const SummaryCard = ({
|
||||
}),
|
||||
);
|
||||
|
||||
if (isNewRightDrawerItemLoading || !isDefined(recordCreatedAt)) {
|
||||
if (!isDefined(recordCreatedAt)) {
|
||||
return <ShowPageSummaryCardSkeletonLoader />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user