Skip to content

Commit

Permalink
fixed the litchi toolbar create new bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MarchLiu committed Sep 20, 2024
1 parent 2becc08 commit bc101d0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion jupyter_litchi/labextension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"outputDir": "jupyter_litchi/labextension",
"schemaDir": "schema",
"_build": {
"load": "static/remoteEntry.1fcd70661429eed9173f.js",
"load": "static/remoteEntry.6f80984ee89cca4219f4.js",
"extension": "./extension",
"style": "./style"
}
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function ModelsComponent(props: {
React.useEffect(() => {
async function loadModels() {
try {
console.log(`load settings from ${props.appId}`);
const settings = await props.registry.load(props.appId);
const baseUrl = settings.get('list-models').composite!.toString();
const key = settings.get('key').composite?.toString();
Expand Down Expand Up @@ -83,6 +84,7 @@ function ModelsComponent(props: {
id="model-select"
value={selectedModel}
onChange={handleChange}
disabled={processing}
>
{models.map(model => (
<option key={model} value={model}>
Expand Down Expand Up @@ -155,7 +157,7 @@ export class WidgetExtension
context: DocumentRegistry.IContext<INotebookModel>
): IDisposable {
const widget = new WidgetExtension(
this.id,
this.appId,
this.app,
this.registry,
this.state,
Expand Down

0 comments on commit bc101d0

Please sign in to comment.