Skip to content

Commit 3a86822

Browse files
authored
fix(ui): ensure that aborting Autosave always has a valid reason for the controller - fixes uncaught error (#7723)
1 parent 6f8604e commit 3a86822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/elements/Autosave/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export const Autosave: React.FC<Props> = ({
224224
if (autosaveTimeout) clearTimeout(autosaveTimeout)
225225
if (abortController.signal) {
226226
try {
227-
abortController.abort()
227+
abortController.abort('Autosave closed early.')
228228
} catch (error) {
229229
// swallow error
230230
}

0 commit comments

Comments
 (0)