mirror of
				https://github.com/HKUDS/LightRAG.git
				synced 2025-11-04 03:39:35 +00:00 
			
		
		
		
	Fix settings popover toggle logic
This commit is contained in:
		
							parent
							
								
									2b06cee7fe
								
							
						
					
					
						commit
						b422d223e8
					
				@ -199,17 +199,15 @@ export default function Settings() {
 | 
			
		||||
  const { t } = useTranslation();
 | 
			
		||||
 | 
			
		||||
  const saveSettings = () => setOpened(false);
 | 
			
		||||
  const toggleSettings = () => setOpened(!opened);
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <>
 | 
			
		||||
      <Popover open={opened}>
 | 
			
		||||
      <Popover open={opened} onOpenChange={setOpened}>
 | 
			
		||||
        <PopoverTrigger asChild>
 | 
			
		||||
          <Button
 | 
			
		||||
            variant={controlButtonVariant}
 | 
			
		||||
            tooltip={t('graphPanel.sideBar.settings.settings')}
 | 
			
		||||
            size="icon"
 | 
			
		||||
            onClick={toggleSettings}
 | 
			
		||||
          >
 | 
			
		||||
            <SettingsIcon />
 | 
			
		||||
          </Button>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user