remove loading states

This commit is contained in:
Nate Kelley 2025-09-30 11:37:23 -06:00
parent 07552f6071
commit 7a2ccbc9ae
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export const ShortcutPopoverContent: MentionPopoverContentCallback = ({ value })
const shortcutName = data?.name;
const instructions = data?.instructions;
if (!isFetched) return <CircleSpinnerLoader />;
if (!isFetched) return null;
return (
<div className="p-3 flex flex-col space-y-3 w-[215px]">

View File

@ -168,7 +168,7 @@ export const useShortcutsSuggestions = (
const ShortcutSuggestionsPopoverContent = ({ shortcut }: { shortcut: Shortcut }) => {
const { isFetched, isError } = useGetShortcut({ id: shortcut.id });
if (!isFetched) return <CircleSpinnerLoader />;
if (!isFetched) return null;
if (isError) return <ErrorCard message="Error fetching shortcut" />;