UI: Fix notification models
This commit is contained in:
		
							parent
							
								
									19f41c0f79
								
							
						
					
					
						commit
						aedb2531dd
					
				@ -100,7 +100,7 @@ export class NotificationComponent implements OnInit {
 | 
			
		||||
          const stateObject: StateObject = {};
 | 
			
		||||
          if (this.notification.additionalConfig.actionButtonConfig.setEntityIdInState) {
 | 
			
		||||
            stateObject.params = {
 | 
			
		||||
              entityId: this.notification.info.stateEntityId ?? null
 | 
			
		||||
              entityId: this.notification.info?.stateEntityId ?? null
 | 
			
		||||
            };
 | 
			
		||||
          } else {
 | 
			
		||||
            stateObject.params = {};
 | 
			
		||||
 | 
			
		||||
@ -35,7 +35,7 @@ export interface Notification {
 | 
			
		||||
  readonly type: NotificationType;
 | 
			
		||||
  readonly subject: string;
 | 
			
		||||
  readonly text: string;
 | 
			
		||||
  readonly info: NotificationInfo;
 | 
			
		||||
  readonly info?: NotificationInfo;
 | 
			
		||||
  readonly status: NotificationStatus;
 | 
			
		||||
  readonly createdTime: number;
 | 
			
		||||
  readonly additionalConfig?: WebDeliveryMethodAdditionalConfig;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user