Skip to content

Commit 65db6b8

Browse files
committed
Update UtilityInjection.astro
1 parent 9913289 commit 65db6b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/src/components/UtilityInjection.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
let { extras, set, version } = Astro.props;
2+
let { extras, except, set, version } = Astro.props;
33
44
extras = (extras ?? '').split('||').filter((extra) => extra !== '').map((extra) => {
55
const [name, type, parameter, description] = extra.split(';;')
@@ -432,6 +432,9 @@ let utilities = [
432432
// Remove duplicate utilities with the same parameter and preserve the last utility, allowing for overrides.
433433
utilities = Array.from(new Map(utilities.map((utility) => [utility.parameter, utility])).values())
434434
435+
// Remove utilities that are in the except list.
436+
utilities = utilities.filter((utility) => !(except ?? '').split('||').includes(utility.parameter))
437+
435438
const link = {
436439
actions: `/docs/${version}/actions/overview#action-utility-injection`,
437440
actionGroups: `/docs/${version}/actions/overview#action-utility-injection`,

0 commit comments

Comments
 (0)