Skip to content

Commit

Permalink
Fix the name of an error event handler for images
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Feb 14, 2024
1 parent edfcadb commit d2b2722
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cljs/daisyproducer2/documents/image.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,13 @@
:dispatch [::fetch-images document-id]}))

(rf/reg-event-db
::ack-failure-delete
::delete-images-failure
(fn [db [_ response]]
(-> db
(notifications/set-errors :delete-all-images (get response :status-text))
(assoc-in [:loading :images] false)
(notifications/clear-button-state :all-images :delete))))


(rf/reg-event-fx
::delete-image
(fn [{:keys [db]} [_ uuid]]
Expand Down

0 comments on commit d2b2722

Please sign in to comment.