Skip to content

Commit

Permalink
hotfix for context providers
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Dec 11, 2024
1 parent 24df3fc commit 38ed4a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gui/src/components/mainInput/ContinueInputBox.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { Editor, JSONContent } from "@tiptap/react";
import { ContextItemWithId, InputModifiers } from "core";
import { useMemo } from "react";
import { useDispatch } from "react-redux";
import styled, { keyframes } from "styled-components";
import { defaultBorderRadius, vscBackground } from "..";
import { useWebviewListener } from "../../hooks/useWebviewListener";
import { selectSlashCommandComboBoxInputs } from "../../redux/selectors";
import ContextItemsPeek from "./ContextItemsPeek";
import TipTapEditor from "./TipTapEditor";
import { useAppSelector } from "../../redux/hooks";
import { selectSlashCommandComboBoxInputs } from "../../redux/selectors";
import { newSession, setMessageAtIndex } from "../../redux/slices/sessionSlice";
import ContextItemsPeek from "./ContextItemsPeek";
import { ToolbarOptions } from "./InputToolbar";
import { useMemo } from "react";
import TipTapEditor from "./TipTapEditor";

interface ContinueInputBoxProps {
isEditMode?: boolean;
Expand Down Expand Up @@ -93,7 +93,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) {
const filteredSlashCommands = props.isEditMode ? [] : availableSlashCommands;
const filteredContextProviders = useMemo(() => {
if (!props.isEditMode) {
availableContextProviders;
return availableContextProviders ?? [];
}

return (
Expand Down

0 comments on commit 38ed4a9

Please sign in to comment.