Skip to content

Commit

Permalink
Update _process-collection.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcox authored Apr 16, 2024
1 parent 7c8f740 commit beb686b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/generator/workers/_process-collection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,8 @@
}
// Check if the $collection is a list of maps
} @else if meta.type-of($collection) == 'list' {
// Remove duplicate maps from the list
$unique-collection: ();
@each $map in $collection {
$exists: false;
@each $unique-map in $unique-collection {
@if $map == $unique-map {
$exists: true;
}
}
@if not $exists {
$unique-collection: append($unique-collection, $map);
}
}

// Process each unique map in the list
@each $map in $unique-collection {
// For each $map in the $collection process it through the process-collection mixin
@include process-collection($map, $prefix, $selector, $is-breakpoint);
}
} @else {
Expand Down

0 comments on commit beb686b

Please sign in to comment.