diff --git a/src/ui/Compose/hooks/useHistory.ts b/src/ui/Compose/hooks/useHistory.ts index 5c32373..2ad9efc 100644 --- a/src/ui/Compose/hooks/useHistory.ts +++ b/src/ui/Compose/hooks/useHistory.ts @@ -46,7 +46,7 @@ export const useHistory = () => { const clearHistory = useCallback(() => { const latestHistory = { ...getLatestHistory() } Object.keys(latestHistory).forEach((k) => { - if (!k.startsWith(id.toString())) { + if (!k.startsWith(id?.toString())) { delete latestHistory[k] } })