Skip to content

Commit

Permalink
refactor: set resizeTo to undefined instead of deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jun 28, 2024
1 parent 3060c8f commit b016ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const ApplicationFunction = (props, forwardedRef) =>
else
{
// @ts-expect-error Actually `resizeTo` is optional, the types are just wrong. 🤷🏻‍♂️
delete application.resizeTo;
application.resizeTo = undefined;
}
}
}, [resizeTo]);
Expand Down

0 comments on commit b016ea9

Please sign in to comment.