Fix issue with grouped notifications UI due to recent API change (#31224)
This commit is contained in:
		@@ -60,7 +60,7 @@ export interface BaseNotificationGroupJSON {
 | 
			
		||||
 | 
			
		||||
interface NotificationGroupWithStatusJSON extends BaseNotificationGroupJSON {
 | 
			
		||||
  type: NotificationWithStatusType;
 | 
			
		||||
  status: ApiStatusJSON;
 | 
			
		||||
  status_id: string;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
interface NotificationWithStatusJSON extends BaseNotificationJSON {
 | 
			
		||||
 
 | 
			
		||||
@@ -124,9 +124,9 @@ export function createNotificationGroupFromJSON(
 | 
			
		||||
    case 'mention':
 | 
			
		||||
    case 'poll':
 | 
			
		||||
    case 'update': {
 | 
			
		||||
      const { status, ...groupWithoutStatus } = group;
 | 
			
		||||
      const { status_id: statusId, ...groupWithoutStatus } = group;
 | 
			
		||||
      return {
 | 
			
		||||
        statusId: status.id,
 | 
			
		||||
        statusId,
 | 
			
		||||
        sampleAccountIds,
 | 
			
		||||
        ...groupWithoutStatus,
 | 
			
		||||
      };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user