Skip to content

Commit fa61ea8

Browse files
authored
fix: DEV-2608: fix removeChild for release (#2523)
* fix: DEV-2608: Suppress removeChild error (#2521) * fix: DEV-2608: Suppress removeChild error It happens on LSF destroy and hurmless * Update build * Update build
1 parent f71002d commit fa61ea8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

label_studio/frontend/dist/react-app/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

label_studio/frontend/dist/react-app/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

label_studio/frontend/src/pages/CreateProject/Config/Preview.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ export const Preview = ({ config, data, error, loading }) => {
6969
return () => {
7070
if (lsf.current) {
7171
console.info('Destroying LSF');
72-
lsf.current.destroy();
72+
// there is can be weird error from LSF, but we can just skip it for now
73+
try {
74+
lsf.current.destroy();
75+
} catch(e) {}
7376
lsf.current = null;
7477
}
7578
};

0 commit comments

Comments
 (0)