Skip to content

Commit c0f5d13

Browse files
akuitybotMarvin9
andauthored
chore(backport release-1.8): fix(ui): remove projects search from localstorage (#5220)
Signed-off-by: Mayursinh Sarvaiya <[email protected]> Co-authored-by: Mayursinh Sarvaiya <[email protected]>
1 parent 3262cfb commit c0f5d13

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui/src/features/project/list/projects-list.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useQuery } from '@connectrpc/connect-query';
22
import { faStar } from '@fortawesome/free-solid-svg-icons';
33
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
44
import { Button, Empty, Flex, Pagination } from 'antd';
5-
import { useEffect } from 'react';
5+
import { useEffect, useState } from 'react';
66

77
import { LoadingState } from '@ui/features/common';
88
import { listProjects } from '@ui/gen/api/service/v1alpha1/service-KargoService_connectquery';
@@ -16,12 +16,11 @@ import { useStarProjects } from './use-star-projects';
1616

1717
const PAGE_SIZE_KEY = 'projects-page-size';
1818
const PAGE_NUMBER_KEY = 'projects-page-number';
19-
const FILTER_KEY = 'projects-filter';
2019

2120
export const ProjectsList = () => {
2221
const [pageSize, setPageSize] = useLocalStorage(PAGE_SIZE_KEY, 10);
2322
const [page, setPage] = useLocalStorage(PAGE_NUMBER_KEY, 1);
24-
const [filter, setFilter] = useLocalStorage(FILTER_KEY, '');
23+
const [filter, setFilter] = useState('');
2524
const [starredProjectsView, setStarredProjectsView] = useLocalStorage(
2625
'starred-projects-view',
2726
false

0 commit comments

Comments
 (0)