Skip to content

Commit 86456bd

Browse files
committed
Cannot read property 'theme' of undefined: TypeError: Cannot read property 'theme' of undefined. Fixes microsoft#138138
1 parent 45b3499 commit 86456bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/themes/browser/themes.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class InstalledThemesPicker {
312312
quickpick.hide();
313313
s();
314314
});
315-
quickpick.onDidChangeActive(themes => selectTheme(themes[0].theme, false));
315+
quickpick.onDidChangeActive(themes => selectTheme(themes[0]?.theme, false));
316316
quickpick.onDidHide(() => {
317317
if (!isCompleted) {
318318
selectTheme(currentTheme, true);

0 commit comments

Comments
 (0)