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:
parent
0d5a4c418e
commit
f127a354ef
5 changed files with 18 additions and 14 deletions
|
@ -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} />
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue