Fix lint errors

This commit is contained in:
Gregory Schier
2024-02-26 07:43:08 -08:00
parent f034cda7cd
commit 59d532ed4d
7 changed files with 13 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ import { useWorkspaces } from './useWorkspaces';
const kvKey = () => 'recent_workspaces';
const namespace = NAMESPACE_GLOBAL;
const defaultValue: string[] = [];
const fallback: string[] = [];
export function useRecentWorkspaces() {
const workspaces = useWorkspaces();
@@ -14,7 +14,7 @@ export function useRecentWorkspaces() {
const kv = useKeyValue<string[]>({
key: kvKey(),
namespace,
defaultValue,
fallback,
});
// Set history when active request changes
@@ -39,6 +39,6 @@ export async function getRecentWorkspaces() {
return getKeyValue<string[]>({
namespace,
key: kvKey(),
fallback: defaultValue,
fallback: fallback,
});
}