mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 15:27:27 +00:00
Fix infinite loading icon on snapshot button
This commit is contained in:
@@ -250,7 +250,11 @@ const Page = () => {
|
|||||||
limit: 10
|
limit: 10
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: snapshotCount, isPending: isSnapshotCountLoading } = useGetWsSnapshotCount({
|
const {
|
||||||
|
data: snapshotCount,
|
||||||
|
isPending: isSnapshotCountLoading,
|
||||||
|
isFetching: isSnapshotCountFetching
|
||||||
|
} = useGetWsSnapshotCount({
|
||||||
workspaceId,
|
workspaceId,
|
||||||
environment,
|
environment,
|
||||||
directory: secretPath,
|
directory: secretPath,
|
||||||
@@ -414,7 +418,7 @@ const Page = () => {
|
|||||||
onSearchChange={handleSearchChange}
|
onSearchChange={handleSearchChange}
|
||||||
onToggleTagFilter={handleTagToggle}
|
onToggleTagFilter={handleTagToggle}
|
||||||
snapshotCount={snapshotCount || 0}
|
snapshotCount={snapshotCount || 0}
|
||||||
isSnapshotCountLoading={isSnapshotCountLoading}
|
isSnapshotCountLoading={isSnapshotCountLoading && isSnapshotCountFetching}
|
||||||
onToggleRowType={handleToggleRowType}
|
onToggleRowType={handleToggleRowType}
|
||||||
onClickRollbackMode={() => handlePopUpToggle("snapshots", true)}
|
onClickRollbackMode={() => handlePopUpToggle("snapshots", true)}
|
||||||
protectedBranchPolicyName={boardPolicy?.name}
|
protectedBranchPolicyName={boardPolicy?.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user