misc: remove hardcoded service slug in card schema lookup (#87328)
gitea/combo/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2024-02-22 15:33:32 +01:00
parent 361f0a9bb1
commit 5d80833736
1 changed files with 1 additions and 1 deletions

View File

@ -1074,7 +1074,7 @@ Card_cell_custom.prototype = {
this.grid_wrapper = this.cell.querySelector(selector + '.wcs-cards-cell--grid-cells');
},
init: function() {
const cardSchema_el = this.cell.querySelector('[id*="card-schema-eservices"]');
const cardSchema_el = this.cell.querySelector('[id*="card-schema-"]');
this.cardSchema = cardSchema_el ? JSON.parse(cardSchema_el.innerText) : undefined;
if (!this.cardSchema) {