Skip to content

Commit

Permalink
Set metadata using the proper method
Browse files Browse the repository at this point in the history
Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
  • Loading branch information
martinRenou and fcollonval authored Jun 15, 2023
1 parent 057de2a commit 781de86
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 @@ -455,7 +455,7 @@ export class WidgetManager extends LabWidgetManager {
*/
private _saveState(): void {
const state = this.get_state_sync({ drop_defaults: true });
this._context.contentsModel?.content.metadata.set('widgets', {
this._context.model.setMetadata('widgets', {
'application/vnd.jupyter.widget-state+json': state,
});
}
Expand Down

0 comments on commit 781de86

Please sign in to comment.