1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Clear the preview when re-downloading models

This commit is contained in:
Henry Heino 2024-12-23 12:50:20 -08:00
parent 1d9ffea65d
commit 6e18fbd9ec

View File

@ -66,6 +66,7 @@ const useVoiceTyping = ({ locale, provider, onSetPreview, onText }: UseVoiceTypi
useAsyncEffect(async (event: AsyncEffectEvent) => {
try {
await voiceTypingRef.current?.stop();
onSetPreviewRef.current?.('');
setModelIsOutdated(await builder.isDownloadedFromOutdatedUrl());