From c56f3312dfe5eea9044ae0adc50eeb5eddc85537 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Thu, 17 Apr 2025 13:43:18 -0400 Subject: [PATCH] fix: resizing image breaks validity of :url blocks db graphs should storing this in properties, not text. Fixes https://github.com/logseq/db-test/issues/241 --- src/main/frontend/handler/editor.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index 6d629b9383..c75b490f57 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -1929,9 +1929,9 @@ (defn resize-image! [config block-id metadata full_text size] (let [asset (:asset-block config)] - (if (and asset (config/db-based-graph?)) + (if (config/db-based-graph?) (property-handler/set-block-property! (state/get-current-repo) - (:db/id asset) + (if asset (:db/id asset) block-id) :logseq.property.asset/resize-metadata size) (let [new-meta (merge metadata size)