Browse Source

fix target for loader

dxt 2 years ago
parent
commit
13d99054d9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lib/comboSearch.ex

+ 3 - 2
lib/comboSearch.ex

@@ -98,10 +98,11 @@ defmodule NITRO.Combo.Search do
     end
     end
   end
   end
 
 
-  def proc({:stop, uid, _ref}, NITRO.pi(state: state(opts: opts, pid: pid)) = pi) do
+  def proc({:stop, _uid, _ref}, NITRO.pi(state: state(opts: opts, pid: pid)) = pi) do
     m  = Keyword.get(opts, :delegate, [])
     m  = Keyword.get(opts, :delegate, [])
+    field = Keyword.get(opts, :field, [])
 
 
-    send(pid, {:direct, NITRO.comboLoader(dom: uid, delegate: m, status: :finished)})
+    send(pid, {:direct, NITRO.comboLoader(dom: field, delegate: m, status: :finished)})
 
 
     {:stop, :normal, pi}
     {:stop, :normal, pi}
   end
   end