               )
               (sort 
                 #(compare ( :num ( nth %1 1)) ( :num( nth %2 1))) 
-              (into[] (:fields ((keyword (:leavecode (:leaveapp @app-state))) (:leavetypes @app-state)) )  )   
-)
+                (filter (fn [x] ( not= (keyword (nth x 0)) :leavecode  )         )
+                  (into[] (:fields ((keyword (:leavecode (:leaveapp @app-state))) (:leavetypes @app-state)) )  )   
+                )
+                
+              )
 
 
 


(defn fields-to-map [fielddef]
  (let [
      newdata {(keyword (get fielddef "fieldcode"))  {:name (get fielddef "name") :fieldtype (get fielddef "fieldtype") :required (get fielddef "required") :num @fieldnum :timeformat (get fielddef "timeformat") :hide (get fielddef "hide") } }
    ]
    (swap! fieldnum inc)
    newdata

                      (dom/input {:type "checkbox"   :id (name (first text)) :label (:name  (nth text 1))
                      ;;:onClick #(handle-chkb-click %)
                      :onChange ( fn [e]( handle-chkb-change  e )   ) 
                      }) 
                  )


