Skip to content

Commit cfce2e4

Browse files
committed
widgets: fix trust for rendering output widget
1 parent d57c1c7 commit cfce2e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/packages/frontend/jupyter/widgets/manager2.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,14 +660,15 @@ class Environment implements WidgetEnvironment {
660660
const { project_id } = actions;
661661
// NOTE: we are NOT caching iframes here, so iframes in output
662662
// widgets will refresh if you scroll them off the screen and back.
663+
const trust = actions.store.get("trust");
663664
const component = React.createElement(
664665
FileContext.Provider,
665666
{
666-
value: { noSanitize: actions.store.get("trust"), project_id },
667+
value: { noSanitize: trust, project_id },
667668
},
668669
React.createElement(
669670
CellOutputMessage,
670-
{ message, actions, project_id },
671+
{ message, actions, project_id, trust },
671672
null,
672673
),
673674
);

0 commit comments

Comments
 (0)