Skip to content

Commit

Permalink
fix: compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Aug 5, 2024
1 parent 2960079 commit df2b9ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export default function ChatMessages(
"messages" | "isLoading" | "reload" | "stop" | "append"
>,
) {
const { starterQuestions } = useClientConfig({
shouldFetchConfig: true,
});
const { starterQuestions } = useClientConfig();
const scrollableChatContainerRef = useRef<HTMLDivElement>(null);
const messageLength = props.messages.length;
const lastMessage = props.messages[messageLength - 1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function LlamaCloudSelector({
<SelectValue placeholder="Select a pipeline" />
</SelectTrigger>
<SelectContent>
{projects.map((project: LLamaCloudProject) => (
{projects!.map((project: LLamaCloudProject) => (
<SelectGroup key={project.id}>
<SelectLabel className="capitalize">
Project: {project.name}
Expand All @@ -126,7 +126,7 @@ export function LlamaCloudSelector({
}

function isValid(config: LlamaCloudConfig): boolean {
const { projects, pipeline } = config ?? {};
const { projects, pipeline } = config;
if (!projects?.length) return false;
if (!pipeline) return false;
const matchedProject = projects.find(
Expand Down

0 comments on commit df2b9ab

Please sign in to comment.