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