Skip to content

Commit 58e8340

Browse files
committed
INT-3336: Adjust implementation of remove from review
1 parent 2611e4e commit 58e8340

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/ts/alien/Loader.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ export const render = async (props: Partial<IAllProps> = {}, container: HTMLElem
7272
root.render(<div><Editor ref={ref} apiKey='no-api-key' {...props} init={init} /></div>);
7373
});
7474

75-
const remove = () => {
76-
root.unmount();
77-
};
75+
const remove = root.unmount.bind(root);
7876

7977
return {
8078
...ctx,

0 commit comments

Comments
 (0)