fixup crash
This commit is contained in:
@@ -134,6 +134,10 @@ export default function UserUrlsList({ user, action }: UrlListProps) {
|
||||
Record<string, number>
|
||||
>({});
|
||||
|
||||
const [searchType, setSearchType] = useState<"slug" | "target" | "userName">(
|
||||
"slug",
|
||||
);
|
||||
|
||||
const { mutate } = useSWRConfig();
|
||||
const { data, isLoading } = useSWR<{
|
||||
total: number;
|
||||
@@ -205,10 +209,6 @@ export default function UserUrlsList({ user, action }: UrlListProps) {
|
||||
);
|
||||
|
||||
const renderSearchInputs = () => {
|
||||
const [searchType, setSearchType] = useState<
|
||||
"slug" | "target" | "userName"
|
||||
>("slug");
|
||||
|
||||
const getCurrentSearchValue = () => {
|
||||
switch (searchType) {
|
||||
case "slug":
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user