Skip to content

Commit

Permalink
WidgetManager - do nothing if rendermime is the global rendermime ins…
Browse files Browse the repository at this point in the history
…tead of raising an error.
  • Loading branch information
Alan Fleming committed Jun 9, 2024
1 parent 658f151 commit 70864f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/jupyterlab_widgets/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ export class WidgetManager extends Backbone.Model implements IDisposable {
manager: WidgetManager
) {
if (rendermime === LabWidgetManager.globalRendermime) {
throw new Error('Using global rendermime is not permitted!');
return;
}
rendermime.removeMimeType(WIDGET_VIEW_MIMETYPE);
rendermime.addFactory(
Expand Down

0 comments on commit 70864f9

Please sign in to comment.