From 386eb18a587b0a791991342b0c6bc49b3e73d3d5 Mon Sep 17 00:00:00 2001 From: Noxire <59626436+noxire-dev@users.noreply.github.com> Date: Thu, 9 Apr 2026 21:20:47 +0300 Subject: [PATCH] Fix persisted composer image hydration typo (#1831) --- apps/web/src/composerDraftStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/composerDraftStore.ts b/apps/web/src/composerDraftStore.ts index f3146d768d408bd198c6fdf798e81f17a43554f1..b40d06b085db2c533d3a94c63e16623bd937f9d0 100644 --- a/apps/web/src/composerDraftStore.ts +++ b/apps/web/src/composerDraftStore.ts @@ -1657,7 +1657,7 @@ function verifyPersistedAttachments( }); } -function hydreatePersistedComposerImageAttachment( +function hydratePersistedComposerImageAttachment( attachment: PersistedComposerImageAttachment, ): File | null { const commaIndex = attachment.dataUrl.indexOf(","); @@ -1693,7 +1693,7 @@ function hydrateImagesFromPersisted( attachments: ReadonlyArray, ): ComposerImageAttachment[] { return attachments.flatMap((attachment) => { - const file = hydreatePersistedComposerImageAttachment(attachment); + const file = hydratePersistedComposerImageAttachment(attachment); if (!file) return []; return [ -- 2.54.0