Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private updateColumns(columns: PblColumn[]): void {
const { prop } = this._header;
this.columns = [];
for (const c of columns) {
if (c.orgProp === prop) {
this.selfColumn = c;
} else {
this.columns.push(c);
}
}
if (!this.selfColumn) {
// TODO: don't assume columns[0]
this.selfColumn = new PblColumn(this._header, this.pluginCtrl.extApi.columnStore.groupStore);
}
}
}