Commit 75ca43d
committed
fix: use loose inequality for thread.branch null check to handle undefined thread
When thread is undefined (from useSidebarThreadSummaryById), thread?.branch
evaluates to undefined. With strict inequality (!== null), undefined !== null
is true, causing useGitStatus to receive a non-null gitCwd for a non-existent
thread. Switch to loose inequality (!= null) to correctly handle both null
and undefined.1 parent 60b9b6c commit 75ca43d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
0 commit comments