mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
check for undefined (#7277)
This commit is contained in:
@@ -81,7 +81,7 @@ export abstract class Task {
|
||||
constructor(private opts: ITaskOptions) {
|
||||
this.id = opts.id;
|
||||
this.title = opts.title;
|
||||
if (opts.iconPath.dark) {
|
||||
if (opts.iconPath) {
|
||||
this.iconPath = {
|
||||
dark: URI.parse(opts.iconPath.dark),
|
||||
light: opts.iconPath.light ? URI.parse(opts.iconPath.light) : undefined,
|
||||
|
||||
Reference in New Issue
Block a user