Skip to content

Commit

Permalink
chore: Remove unused code and console.log statement in Popup component
Browse files Browse the repository at this point in the history
  • Loading branch information
altintx committed Sep 7, 2024
1 parent d17b293 commit b65c18b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Popup.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';
import { CmdShiftPAction } from '../types/command-shift-p-action';
import { Command } from "cmdk";
import { getActions, lunrActionsIndex, lunrIndex } from '../actions';
import { getActions, lunrActionsIndex } from '../actions';
import { ActionRow } from './ActionRow';

const Popup: React.FC = () => {
Expand All @@ -23,7 +23,6 @@ const Popup: React.FC = () => {
const actions = useMemo(() => {
const matches = index.search(search);
const results = matches.map(({ ref }) => allActions.find(action => action.id === ref)!);
console.log({ matches, results })
return results;
}, [index, search]);

Expand Down

0 comments on commit b65c18b

Please sign in to comment.