Fix default rule mode
This commit is contained in:
parent
a85dca5b3d
commit
1d3ab00b95
|
@ -25,7 +25,7 @@ defmodule FrenzyWeb.ConfigureStage.FilterStageLive do
|
|||
def handle_event("add_rule", _params, socket) do
|
||||
new_rules =
|
||||
socket.assigns.opts["rules"] ++
|
||||
[%{"mode" => "text", "param" => "", "property" => "title", "weight" => 1}]
|
||||
[%{"mode" => "contains_string", "param" => "", "property" => "title", "weight" => 1}]
|
||||
|
||||
new_opts = Map.put(socket.assigns.opts, "rules", new_rules)
|
||||
new_stage = Frenzy.Keypath.set(socket.assigns.stage, socket.assigns.keypath, new_opts)
|
||||
|
|
Loading…
Reference in New Issue