Skip to content

Commit

Permalink
Fixes strapi#7414
Browse files Browse the repository at this point in the history
Signed-off-by: soupette <cyril.lpz@gmail.com>
Signed-off-by: Gil Fernandes <gil.fernandes@onepointltd.com>
  • Loading branch information
soupette authored and onepointconsulting committed Aug 13, 2020
1 parent 8063dbd commit 3989b05
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,6 @@ const EditViewDataManagerProvider = ({
});
};

const showLoader = useMemo(() => {
return !isCreatingEntry && isLoading;
}, [isCreatingEntry, isLoading]);

const overlayBlockerParams = useMemo(
() => ({
children: <div />,
Expand Down Expand Up @@ -679,7 +675,7 @@ const EditViewDataManagerProvider = ({
>
<>
<OverlayBlocker key="overlayBlocker" isOpen={isSubmitting} {...overlayBlockerParams} />
{showLoader ? (
{isLoading ? (
<LoadingIndicatorPage />
) : (
<>
Expand Down

0 comments on commit 3989b05

Please sign in to comment.