Skip to content

Commit

Permalink
Merge pull request #1133 from Azmoria/Fix---issue-with-action-rolls-f…
Browse files Browse the repository at this point in the history
…rom-DDB-changes
  • Loading branch information
kakaroto committed Jun 5, 2024
2 parents 414fffb + f3e5170 commit c388e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dndbeyond/base/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function propertyListToDict(propList) {
const properties = {}
for (let i = 0; i < propList.length; i++) {
const prop = propList.eq(i);
let labelElement = prop.find(".ct-property-list__property-label,.ddbc-property-list__property-label");
let valueElement = prop.find(".ct-property-list__property-content,.ddbc-property-list__property-content");
let labelElement = prop.find(".ct-property-list__property-label,.ddbc-property-list__property-label,[class*='InfoItem_label']");
let valueElement = prop.find(".ct-property-list__property-content,.ddbc-property-list__property-content,[class*='InfoItem_value']");
// April 2024 website redesign now uses dynamic class names with styled components
if (labelElement.length === 0 || valueElement.length === 0) {
labelElement = prop.children().filter((i, el) => el.className.includes("Label"));
Expand Down

0 comments on commit c388e89

Please sign in to comment.