Skip to content

Commit d7aa5c8

Browse files
author
James Brundage
committed
feat: Get-Htmx ( Fixes #6 )
Fixing explicit -Children support
1 parent 4e0c2b5 commit d7aa5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/Get-Htmx.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function Get-HTMX {
105105
# If the last key is content, child, or children, we will treat the argument as a child.
106106
if ($lastKey -in 'content', 'child', 'children') {
107107
$moreChildren.Add($argument)
108-
$attributes.RemoveAt($lastKey)
108+
$attributes.Remove($lastKey)
109109
} else {
110110
# Otherwise, we will treat it as a value.
111111
$attributes[@($attributes.Keys)[-1]] = $argument

0 commit comments

Comments
 (0)