mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
Update sqlcmd table to use dataValues instead of deprecated data (#13121)
* Update sqlcmd table to use dataValues instead of deprecated data * fix in declarativeTableComponent
This commit is contained in:
@@ -460,8 +460,7 @@ export class PublishDatabaseDialog {
|
||||
|
||||
const data = this.convertSqlCmdVarsToTableFormat(this.sqlCmdVars!);
|
||||
(<azdata.DeclarativeTableComponent>this.sqlCmdVariablesTable)!.updateProperties({
|
||||
dataValues: data,
|
||||
data: [] // data is deprecated, but the table gets updated incorrectly if this isn't set to an empty array
|
||||
dataValues: data
|
||||
});
|
||||
|
||||
this.tryEnableGenerateScriptAndOkButtons();
|
||||
@@ -569,7 +568,7 @@ export class PublishDatabaseDialog {
|
||||
|
||||
const data = this.convertSqlCmdVarsToTableFormat(this.getSqlCmdVariablesForPublish());
|
||||
await (<azdata.DeclarativeTableComponent>this.sqlCmdVariablesTable).updateProperties({
|
||||
data: data
|
||||
dataValues: data
|
||||
});
|
||||
|
||||
if (Object.keys(result.sqlCmdVariables).length) {
|
||||
|
||||
Reference in New Issue
Block a user