diff --git a/backend/src/app/srepl/helpers.clj b/backend/src/app/srepl/helpers.clj index 8aba532b3..2ea26e3bb 100644 --- a/backend/src/app/srepl/helpers.clj +++ b/backend/src/app/srepl/helpers.clj @@ -132,9 +132,10 @@ (bfc/get-file system id)))) (d/index-by :id))) - file' (if with-libraries? - (update-fn file libs opts) - (update-fn file opts))] + file' (when file + (if with-libraries? + (update-fn file libs opts) + (update-fn file opts)))] (when (and (some? file') (not (identical? file file')))