Skip to content

Commit

Permalink
reusing the default update code
Browse files Browse the repository at this point in the history
  • Loading branch information
ssreerama committed Sep 14, 2023
1 parent f75bd74 commit 9572cdc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions extensions/mssql/src/objectManagement/ui/databaseDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,15 +909,7 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
}
// Default column
else if (arg.column === 3) {
if (arg.value) {
this.objectInfo.filegroups.forEach(fg => {
if (fg.type === FileGroupType.FileStreamDataFileGroup) {
fg.isDefault = fg.name === filegroup.name && fg.id === filegroup.id ? arg.value : !arg.value;
}
});
} else {
filegroup.isDefault = arg.value;
}
this.updateFilegroupsDefaultColumnValues(arg.value, filegroup, FileGroupType.FileStreamDataFileGroup);
}

// Refresh the table with updated data
Expand Down

0 comments on commit 9572cdc

Please sign in to comment.