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

            "Please select at least one entity to copy"])
         [:div {:style {:marginTop "1em"}}
          [comps/Button {:text "Import"
                         :onClick #(let [selected (react/call :get-selected-entities (@refs "EntitySelector"))]
                                     (if (empty? selected)
                                       (swap! state assoc :selection-error true)
                                       (react/call :perform-copy this selected)))}]]]]))
   :perform-copy
   (fn [{:keys [props state this]} selected re-link?]
     (swap! state assoc :selection-error nil :server-error nil :copying? true)

      {: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
