@@ -202,32 +202,27 @@ const ProjectListItem = ({project, projectGitConfiguration, remainingTags}: Proj
202202 pullProjectFromGitMutation . mutate ( { id : project . id ! } ) ;
203203 } ;
204204
205- const handleProjectListItemClick = useCallback (
206- ( event : React . MouseEvent ) => {
207- const target = event . target as HTMLElement ;
208-
209- const interactiveSelectors = [
210- '[data-interactive]' ,
211- '.dropdown-menu-item' ,
212- '[data-radix-dropdown-menu-item]' ,
213- '[data-radix-dropdown-menu-trigger]' ,
214- '[data-radix-collapsible-trigger]' ,
215- ] . join ( ', ' ) ;
216-
217- if ( target . closest ( interactiveSelectors ) ) {
218- return ;
219- }
205+ const handleProjectListItemClick = useCallback ( ( event : React . MouseEvent ) => {
206+ const target = event . target as HTMLElement ;
207+
208+ const interactiveSelectors = [
209+ '[data-interactive]' ,
210+ '.dropdown-menu-item' ,
211+ '[data-radix-dropdown-menu-item]' ,
212+ '[data-radix-dropdown-menu-trigger]' ,
213+ '[data-radix-collapsible-trigger]' ,
214+ ] . join ( ', ' ) ;
215+
216+ if ( target . closest ( interactiveSelectors ) ) {
217+ return ;
218+ }
220219
221- if ( workflowsCollapsibleTriggerRef . current ?. contains ( target ) ) {
222- return ;
223- }
220+ if ( workflowsCollapsibleTriggerRef . current ?. contains ( target ) ) {
221+ return ;
222+ }
224223
225- if ( project . projectWorkflowIds ?. length ) {
226- workflowsCollapsibleTriggerRef . current ?. click ( ) ;
227- }
228- } ,
229- [ project . projectWorkflowIds ]
230- ) ;
224+ workflowsCollapsibleTriggerRef . current ?. click ( ) ;
225+ } , [ ] ) ;
231226
232227 return (
233228 < >
0 commit comments