Fix
This commit is contained in:
		
							parent
							
								
									32dd3bf842
								
							
						
					
					
						commit
						af42693ea1
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -82,7 +82,7 @@ watch(() => props.items, () => { | ||||||
| 		if (item && 'then' in item) { // if item is Promise | 		if (item && 'then' in item) { // if item is Promise | ||||||
| 			items[i] = { type: 'pending' }; | 			items[i] = { type: 'pending' }; | ||||||
| 			item.then(actualItem => { | 			item.then(actualItem => { | ||||||
| 				items[i] = actualItem; | 				items2[i] = actualItem; | ||||||
| 			}); | 			}); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -15,5 +15,6 @@ export type MenuButton = { type?: 'button', text: string, icon?: string, indicat | ||||||
| export type MenuPending = { type: 'pending' }; | export type MenuPending = { type: 'pending' }; | ||||||
| 
 | 
 | ||||||
| type OuterMenuItem = MenuDivider | MenuNull | MenuLabel | MenuLink | MenuA | MenuUser | MenuSwitch | MenuButton; | type OuterMenuItem = MenuDivider | MenuNull | MenuLabel | MenuLink | MenuA | MenuUser | MenuSwitch | MenuButton; | ||||||
| export type MenuItem = OuterMenuItem | Promise<OuterMenuItem>; | type OuterPromiseMenuItem = Promise<MenuLabel | MenuLink | MenuA | MenuUser | MenuSwitch | MenuButton>; | ||||||
|  | export type MenuItem = OuterMenuItem | OuterPromiseMenuItem; | ||||||
| export type InnerMenuItem = MenuDivider | MenuPending | MenuLabel | MenuLink | MenuA | MenuUser | MenuSwitch | MenuButton; | export type InnerMenuItem = MenuDivider | MenuPending | MenuLabel | MenuLink | MenuA | MenuUser | MenuSwitch | MenuButton; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue