mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
Fix new table issue (#18974)
* fix new table issue * fix new table scenario * simplify logic
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user