inherit props to runPartial

This commit is contained in:
Quinn Dougherty 2022-07-28 11:07:32 -04:00
parent c77795c832
commit 779fcf4fc6

View File

@ -34,7 +34,14 @@ export const SquiggleEditorWithImportedBindings: React.FC<
let contents = await fetch(fileName).then((response) => {
return response.text();
});
setBindingsResult(runPartial(contents));
setBindingsResult(
runPartial(
contents,
editorProps.bindings,
editorProps.environment,
editorProps.jsImports
)
);
}
retrieveBindings(bindingsImportUrl);
}, [bindingsImportUrl]);