mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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._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();
|
this.setEditorLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user