                   :vcs_type vcs-type}]
         :header-actions (settings-link vcs-type org-name project-name)
         :sidebar (build-legacy legacy-branch-picker (:legacy/state (om-next/props this)))
-        :main-content (when-let [project (:project-for-runs (om-next/props this))]
-                        (project-workflow-runs project))}))))
+        :main-content (if-let [project (:project-for-runs (om-next/props this))]
+                        (project-workflow-runs project)
+                        (spinner))}))))
 
 (defui ^:once OrgWorkflowRuns
   static om-next/IQuery

  Object
  (render [this]
    (component
      (-> this om-next/props :project/workflow-runs run-row-collection))))

(def project-workflow-runs (om-next/factory ProjectWorkflowRuns))


(ns frontend.components.pages.workflow
  (:require [clojure.string :as string]
            [frontend.api :as api]
            [frontend.components.aside :as aside]
            [frontend.components.common :as common]
            [frontend.components.pieces.button :as button]
            [frontend.components.pieces.card :as card]
            [frontend.components.pieces.empty-state :as empty-state]
            [frontend.components.pieces.icon :as icon]
            [frontend.components.pieces.spinner :refer [spinner]]
            [frontend.components.templates.main :as main-template]
            [frontend.datetime :as datetime]
            [frontend.models.build :as build-model]
