Skip to content

Commit

Permalink
Fix root selection
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyfran committed Oct 29, 2024
1 parent b5feb10 commit fd0ff39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/components/add-provider/src/select-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { LitElement, css, html, nothing } from "lit";
import { customElement, property } from "lit/decorators.js";
import "@echo/components-ui-atoms";
import { ProviderStartedEvent } from "./events";
import type { ItemSelected } from "@echo/components-ui-atoms";

/**
* Component that displays a list of available folders and allows the user to
Expand Down Expand Up @@ -71,8 +72,9 @@ export class SelectRoot extends LitElement {
});
}

private _onSelectChange(event: CustomEvent<FolderMetadata>) {
this._selectedFolder = event.detail;
private _onSelectChange(event: ItemSelected<FolderMetadata>) {
const [folder] = event.detail;
this._selectedFolder = folder;
}

private _onStartProvider() {
Expand Down

0 comments on commit fd0ff39

Please sign in to comment.