authorgravatar for 59626436+noxire-dev@users.noreply.github.comNoxire <59626436+noxire-dev@users.noreply.github.com> 2026-04-09 21:20:47+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-09 18:20:47+00:00
log386eb18a587b0a791991342b0c6bc49b3e73d3d5
treeddd8c88920423a3a17ad14398ec5e22bd0273d43
parent7372184d06646dde603e5fd92bc23d3f35ae8d10
signature Signed by PGP key B5690EEEBB952194

Fix persisted composer image hydration typo (#1831)


1 files changed, 2 insertions(+), 2 deletions(-)

apps/web/src/composerDraftStore.ts+2-2
......@@ -1657,7 +1657,7 @@ function verifyPersistedAttachments(
16571657 });
16581658}
16591659
1660function hydreatePersistedComposerImageAttachment(
1660function hydratePersistedComposerImageAttachment(
16611661 attachment: PersistedComposerImageAttachment,
16621662): File | null {
16631663 const commaIndex = attachment.dataUrl.indexOf(",");
......@@ -1693,7 +1693,7 @@ function hydrateImagesFromPersisted(
16931693 attachments: ReadonlyArray<PersistedComposerImageAttachment>,
16941694): ComposerImageAttachment[] {
16951695 return attachments.flatMap((attachment) => {
1696 const file = hydreatePersistedComposerImageAttachment(attachment);
1696 const file = hydratePersistedComposerImageAttachment(attachment);
16971697 if (!file) return [];
16981698
16991699 return [