Commit bf08228
committed
fix(webapp): read impersonation state from useIsImpersonating in GlobalShortcuts
useOptionalUser returns UserWithDashboardPreferences, which has no
isImpersonating field (it comes from the org loader), so referencing
user.isImpersonating failed the typecheck. Source it from useIsImpersonating,
the same hook useHasAdminAccess uses.1 parent d6ca3b2 commit bf08228
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments