Просмотр исходного кода

fix: file graph intermittently fails to paste block-ref

:block/properties can intermittently be '() in this fn, even
though entity-plus is not returning that
Gabriel Horner 8 месяцев назад
Родитель
Сommit
d08acfc3ba
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -2097,7 +2097,7 @@
             {:block/page {:db/id (:db/id page)}
              :block/title new-content}
              (not db-based?)
-             (assoc :block/properties (apply dissoc (:block/properties block)
+             (assoc :block/properties (apply dissoc (not-empty (:block/properties block))
                                              (concat
                                               (when-not keep-uuid? [:id])
                                               [:custom_id :custom-id]