     (html [:span image])))
 
 (rum/defc form-replicas < rum/static [tasks]
-  (let [desired-tasks (filter #(= "running" (:desiredState %)) tasks)
-        data (->> desired-tasks
+  (let [data (->> tasks
                   (map (fn [task]
                          (if (= "running" (:state task))
                            {:name  (:taskName task)

                  (into []))]
    (chart/pie
      data
      (str (count desired-tasks) " " (inflect/pluralize-noun (count desired-tasks) "replica"))
      "Swarmpit-service-replicas-graph"
      "replicas-pie"
      {:formatter (fn [value name props]

  (let [image-digest (get-in service [:repository :imageDigest])
        image (get-in service [:repository :image])
        resources (:resources service)
        desired-tasks (filter #(not= "shutdown" (:desiredState %)) tasks)
        command (:command service)
        stack (:stack service)
        mode (:mode service)]
