Commit 0f7810a8 by sawit

companyId

parent d2090115
......@@ -272,7 +272,7 @@ export class DatasetWidgetLinkerComponent implements OnInit {
dialogRef.afterClosed().subscribe(resultConfig => {
if (resultConfig) {
const newLinkedWidget: MenuItemsWidget = {
companyId: 'MYSKILX_UAT', itemId: this.selectedDatasetId!, widget: widget,
companyId: JSON.parse(window.localStorage.getItem("company") || '{}').companyId || 'MYSKILX_UAT', itemId: this.selectedDatasetId!, widget: widget,
config: JSON.stringify(resultConfig), data: '', perspective: ''
};
this.mMenuitemsWidgetService.saveLinkedWidget(newLinkedWidget).subscribe(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment