started work on simplifying invoice page
This commit is contained in:
@@ -168,10 +168,15 @@
|
||||
(let [headers (if token
|
||||
{"Authorization" (str "Token " token)}
|
||||
{})
|
||||
on-success (if (fn? on-success)
|
||||
on-success
|
||||
(fn [result]
|
||||
(conj on-success result)))
|
||||
|
||||
method (if (= (get-in query-obj [:venia/operation :operation/type]) :mutation)
|
||||
:post
|
||||
:get)
|
||||
|
||||
headers (if (= method :post)
|
||||
(assoc headers "Content-Type" "text/plain")
|
||||
headers)
|
||||
@@ -214,5 +219,5 @@
|
||||
:body
|
||||
:data
|
||||
(dates->date-times)
|
||||
(conj on-success)
|
||||
(on-success)
|
||||
(re-frame/dispatch))))))))
|
||||
|
||||
Reference in New Issue
Block a user