1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-02 01:15:17 +02:00

Fixed state bug while updating categories. Fixed bug with bookmarks not being displayed under categories.

This commit is contained in:
Paweł Malak 2021-11-09 15:51:50 +01:00
parent 0d5a4c418e
commit f127a354ef
5 changed files with 18 additions and 14 deletions

View file

@ -40,10 +40,10 @@ export const Apps = (props: Props): JSX.Element => {
const [appInUpdate, setAppInUpdate] = useState<App>(appTemplate);
useEffect(() => {
if (apps.length === 0) {
if (!apps.length) {
getApps();
}
}, [getApps]);
}, []);
const toggleModal = (): void => {
setModalIsOpen(!modalIsOpen);
@ -85,7 +85,7 @@ export const Apps = (props: Props): JSX.Element => {
{loading ? (
<Spinner />
) : !isInEdit ? (
<AppGrid apps={apps} searching />
<AppGrid apps={apps} searching={props.searching} />
) : (
<AppTable updateAppHandler={toggleUpdate} />
)}