        :else [:div {:style {:textAlign "center"}} [comps/Spinner {:text "Loading entities..."}]]))
    :component-did-mount
    (fn [{:keys [this]}]
-     (react/call :load-entities this))
+     (this :load-entities))
    :load-entities
    (fn [{:keys [state props]}]
      (endpoints/call-ajax-orch

                      {:text "Re-link"
                       :onClick (fn []
                                  (modal/pop-modal)
                                  (react/call :perform-copy this selected true))}
                      "OK")})))})



      {:endpoint (endpoints/copy-entity-to-workspace (:workspace-id props) re-link?)
       :payload {:sourceWorkspace (:selected-workspace-id props)
                 :entityType (:type props)
                 :entityNames (map :name selected)}
       :headers utils/content-type=json
       :on-done (fn [{:keys [success? get-parsed-response]}]
                  (swap! state dissoc :copying?)
                  (when success?
                    ((:on-data-imported props) (:type props)))
                  (this :show-import-result (get-parsed-response false) selected))}))
   :show-import-result
   (fn [{:keys [this props]} parsed-response selected]
     (let [formatted-response (walk/postwalk
