Skip to content

Commit

Permalink
fix tailwindClasses combinations output
Browse files Browse the repository at this point in the history
  • Loading branch information
goranalkovic-infinum committed Oct 3, 2024
1 parent 8bec0ff commit d664cee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/editor/tailwindcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,12 @@ const processCombination = (partName, combo, attributes, manifest) => {
for (const [attributeName, allowedValue] of Object.entries(combo?.attributes ?? {})) {
const optionValue = checkAttr(attributeName, attributes, manifest, true);

if (Array.isArray(allowedValue) && !allowedValue.includes(optionValue)) {
const isArrayCondition = Array.isArray(allowedValue);

if (isArrayCondition && !allowedValue.includes(optionValue)) {
matches = false;
break;
}

if (optionValue !== allowedValue) {
} else if (!isArrayCondition && optionValue !== allowedValue) {
matches = false;
break;
}
Expand Down

0 comments on commit d664cee

Please sign in to comment.