Skip to content

Commit

Permalink
RavenDB-21465 Fix column selector when custom Identity Property is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 authored and ppekrol committed Oct 16, 2023
1 parent 06008a5 commit a18ff79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ class documentBasedColumnsProvider {

if (this.createHyperlinks) {
if (p === "__metadata") {
return new hyperlinkColumn(this.gridController, document.createDocumentIdProvider(), x => appUrl.forEditDoc(x.getId(), this.db, x.__metadata.collection), "Id", columnWidth, this.columnOptions);
return new hyperlinkColumn(this.gridController, document.createDocumentIdProvider(), x => appUrl.forEditDoc(x.getId(), this.db, x.__metadata.collection), "@id", columnWidth, this.columnOptions);
}

return new hyperlinkColumn(this.gridController, p, _.partial(this.findLink, _, p).bind(this), generalUtils.escapeHtml(p), columnWidth, this.columnOptions);
} else {
if (p === "__metadata") {
return new textColumn(this.gridController, document.createDocumentIdProvider(), "Id", columnWidth, this.columnOptions);
return new textColumn(this.gridController, document.createDocumentIdProvider(), "@id", columnWidth, this.columnOptions);
}
return new textColumn(this.gridController, p, generalUtils.escapeHtml(p), columnWidth, this.columnOptions);
}
Expand Down

0 comments on commit a18ff79

Please sign in to comment.