You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/file-selector/components/microsoft-file-selector.tsx
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -727,6 +727,13 @@ export function MicrosoftFileSelector({
727
727
})
728
728
: availableFiles
729
729
730
+
constcanShowPreview=!!(
731
+
showPreview&&
732
+
selectedFile&&
733
+
selectedFileId&&
734
+
selectedFile.id===selectedFileId
735
+
)
736
+
730
737
return(
731
738
<>
732
739
<divclassName='space-y-2'>
@@ -750,7 +757,7 @@ export function MicrosoftFileSelector({
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/project-selector/components/jira-project-selector.tsx
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -353,6 +353,14 @@ export function JiraProjectSelector({
353
353
}
354
354
},[value])
355
355
356
+
// Clear local preview when value is cleared remotely or via collaborator
357
+
useEffect(()=>{
358
+
if(!value){
359
+
setSelectedProject(null)
360
+
onProjectInfoChange?.(null)
361
+
}
362
+
},[value,onProjectInfoChange])
363
+
356
364
// Handle open change
357
365
consthandleOpenChange=(isOpen: boolean)=>{
358
366
setOpen(isOpen)
@@ -387,6 +395,8 @@ export function JiraProjectSelector({
0 commit comments