We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84a67fb commit 6d68be3Copy full SHA for 6d68be3
1 file changed
src/components/HelpPanel/HelpPanelTabs/SearchPanel/SearchPanel.tsx
@@ -380,9 +380,14 @@ const SearchPanel = ({
380
});
381
};
382
383
- // Load quickstarts data once on mount
+ // Load quickstarts data once on mount (skip when chrome auth is unavailable, e.g. in tests)
384
useEffect(() => {
385
let cancelled = false;
386
+ if (!chrome?.auth?.getUser) {
387
+ return () => {
388
+ cancelled = true;
389
+ };
390
+ }
391
fetchAllData(chrome.auth.getUser, {})
392
.then(([, quickStarts]) => {
393
if (!cancelled) {
0 commit comments