Skip to content

Commit

Permalink
Fix new table issue (microsoft#18974)
Browse files Browse the repository at this point in the history
* fix new table issue

* fix new table scenario

* simplify logic
  • Loading branch information
Aditya Bist authored Apr 8, 2022
1 parent cd7c949 commit 197d56a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export class TableDesignerInput extends EditorInput {
this._onDidChangeDirty.fire();
}
}));
this._tableIcon = tableInfo.tableIcon.toString() === '' ? TableIcon.Basic : tableInfo.tableIcon as TableIcon;

// default to basic if icon is null (new table) or no sub type
this._tableIcon = tableInfo.tableIcon ? tableInfo.tableIcon as TableIcon : TableIcon.Basic;
this.setEditorLabel();
}

Expand Down

0 comments on commit 197d56a

Please sign in to comment.