Skip to content

Commit

Permalink
Core - Cleanup some unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
smastrom committed Jan 27, 2024
1 parent 0b64bda commit 5901400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/notivue/core/createStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export function createAnimations(config: ConfigSlice, items: ItemsSlice, element
playClearAll() {
const { clearAll = '' } = config.animations.value

items.entries.value.forEach(({ timeout }) => window.clearTimeout(timeout as number))
items.entries.value.forEach((e) => window.clearTimeout(e.timeout as number))

if (!clearAll || this.isReducedMotion.value) return items.clear()

Expand Down
2 changes: 1 addition & 1 deletion packages/notivue/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function mergeNotificationOptions<T extends Obj = Obj>(
pushOptions.props ||= {} as T

return {
...(configOptions[pushOptions.type] ?? configOptions.success),
...configOptions[pushOptions.type],
...configOptions.global,
...pushOptions,
...(pushOptions.type === 'promise' ? { duration: Infinity } : {}), // Force duration infinity
Expand Down

0 comments on commit 5901400

Please sign in to comment.