fix(client/route-switch): skip sub routes
This commit is contained in:
		
							parent
							
								
									6076014c54
								
							
						
					
					
						commit
						7df5129cd7
					
				@ -77,6 +77,9 @@ const MenuEditor = (props) => {
 | 
			
		||||
      onSuccess(data) {
 | 
			
		||||
        const schema = filterByACL(data?.data, ctx);
 | 
			
		||||
        if (defaultSelectedUid) {
 | 
			
		||||
          if (defaultSelectedUid.includes('/')) {
 | 
			
		||||
            return;
 | 
			
		||||
          }
 | 
			
		||||
          const s = findByUid(schema, defaultSelectedUid);
 | 
			
		||||
          if (s) {
 | 
			
		||||
            setTitle(s.title);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user