Skip to content

Commit

Permalink
Only test disabled-items-warnings if application is in editable state.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leena Wooller committed Mar 12, 2019
1 parent e9992bd commit 3162e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/rems/application.cljs
Expand Up @@ -765,7 +765,7 @@
(map dynamic-event->event (:dynamic-events app)))
applicant-attributes (:applicant-attributes application)
messages (remove nil?
[(disabled-items-warning (:catalogue-items application)) ; NB: eval this here so we get nil or a warning
[(when (editable? application)(disabled-items-warning (:catalogue-items application))) ; NB: eval this here so we get nil or a warning
(when (:validation edit-application)
[flash-message
{:status :danger
Expand Down

0 comments on commit 3162e8d

Please sign in to comment.