mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Turn back on Linux CI test validation (#14241)
* Turn on Linux CI test validation * Add checks around a code block raising exceptions in unit tests * Bump node version to 12 * Add check around classList add
This commit is contained in:
@@ -345,7 +345,10 @@ class WelcomePage extends Disposable {
|
||||
workspaces = workspaces.filter(recent => !this.contextService.isCurrentWorkspace(isRecentWorkspace(recent) ? recent.workspace : recent.folderUri));
|
||||
if (!workspaces.length) {
|
||||
const recent = container.querySelector('.welcomePage') as HTMLElement;
|
||||
recent.classList.add('emptyRecent');
|
||||
// {{SQL CARBON EDIT}} - avoid unit test null ref
|
||||
if (recent && recent.classList) {
|
||||
recent.classList.add('emptyRecent');
|
||||
}
|
||||
return;
|
||||
}
|
||||
const ul = container.querySelector('.recent ul');
|
||||
|
||||
Reference in New Issue
Block a user