mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
Use Map.filter on map instead of Enum.filter
This commit is contained in:
parent
db4205d120
commit
ca2d782946
1 changed files with 1 additions and 2 deletions
|
|
@ -101,11 +101,10 @@ defmodule LiveSvelte do
|
|||
|> Map.keys()
|
||||
|
||||
assigns
|
||||
|> Enum.filter(fn
|
||||
|> Map.filter(fn
|
||||
{:svelte_opts, _v} -> false
|
||||
{k, _v} -> k in prop_keys
|
||||
end)
|
||||
|> Enum.into(%{})
|
||||
end
|
||||
|
||||
@doc false
|
||||
|
|
|
|||
Loading…
Reference in a new issue