Skip to content

Commit

Permalink
wc - Added TOOL_ID to variant browser
Browse files Browse the repository at this point in the history
Signed-off-by: gpveronica <[email protected]>
  • Loading branch information
gpveronica committed Oct 30, 2023
1 parent 1f4bf29 commit e0e900d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webcomponents/variant/variant-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default class VariantBrowser extends LitElement {
this.variant = null;

this.activeTab = "table-tab";
this.TOOL_ID = "VARIANT_BROWSER";
this._config = this.getDefaultConfig();
}

Expand Down Expand Up @@ -147,7 +148,7 @@ export default class VariantBrowser extends LitElement {
// Apply User grid configuration. Only 'pageSize', 'columns', 'geneSet', 'consequenceType' and 'populationFrequenciesConfig' are set
UtilsNew.setObjectValue(this._config, "filter.result.grid", {
...this._config.filter?.result?.grid,
...this.opencgaSession?.user?.configs?.IVA?.settings?.VARIANT_BROWSER?.grid
...this.opencgaSession?.user?.configs?.IVA?.settings?.[this.TOOL_ID]?.grid,
});

this.requestUpdate();
Expand Down

0 comments on commit e0e900d

Please sign in to comment.