Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jpan8866 committed Oct 22, 2024
1 parent 1b9d8ee commit 0731c3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions gui/src/components/mainInput/TipTapEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ function TipTapEditor(props: TipTapEditorProps) {

let index = 0;
for (const el of editor.getJSON().content) {
console.dir(el)
if (el.type === "codeBlock") {
index += 2;
} else {
Expand Down Expand Up @@ -736,7 +735,6 @@ function TipTapEditor(props: TipTapEditorProps) {
useWebviewListener(
"highlightedCode",
async (data) => {
console.log(data)
if (!props.isMainInput || !editor) {
return;
}
Expand Down Expand Up @@ -764,7 +762,6 @@ function TipTapEditor(props: TipTapEditorProps) {

let index = 0;
for (const el of editor.getJSON().content) {
console.dir(el)
if (el.type === "codeBlock") {
index += 2;
} else {
Expand Down
4 changes: 2 additions & 2 deletions gui/src/components/modelSelection/ModelSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ function ModelSelect() {

if (location.pathname === "/aiderMode") {
const aider = allModels.find(
(model) => model.title.toLowerCase().includes("aider"),
(model) => model?.title?.toLowerCase().includes("aider"),
);
dispatch(setDefaultModel({ title: aider?.title }));
} else if (location.pathname === "/perplexityMode") {
const perplexity = allModels.find(
(model) => model.title.toLowerCase() === "perplexity",
(model) => model?.title?.toLowerCase() === "perplexity",
);
dispatch(setDefaultModel({ title: perplexity?.title }));
}
Expand Down

0 comments on commit 0731c3a

Please sign in to comment.