From 1d3ab00b95bbaa8315e422973491e1ac3cbc09d9 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 28 Aug 2021 18:08:21 -0400 Subject: [PATCH] Fix default rule mode --- lib/frenzy_web/live/configure_stage/filter_stage_live.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frenzy_web/live/configure_stage/filter_stage_live.ex b/lib/frenzy_web/live/configure_stage/filter_stage_live.ex index 75fa0ba..e177696 100644 --- a/lib/frenzy_web/live/configure_stage/filter_stage_live.ex +++ b/lib/frenzy_web/live/configure_stage/filter_stage_live.ex @@ -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)