Skip to content

Commit

Permalink
Fix signal set for non signal method
Browse files Browse the repository at this point in the history
  • Loading branch information
Machy8 committed Nov 30, 2024
1 parent 422029c commit c841e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/signalizejs/src/modules/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ export default async ($, config) => {
...trackedSignals,
{
get, value,
set: (value) => trackedSignals[trackedSignals.length - 1](value) ?? null
set: (value) => {
trackedSignals[trackedSignals.length - 1]?.(value)
}
}
]
});
Expand Down

0 comments on commit c841e8b

Please sign in to comment.