mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 03:29:35 +00:00
UI bug fixes for the dashboard
This commit is contained in:
@@ -157,7 +157,6 @@ export default function Dashboard() {
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
try {
|
||||
console.log(1, 'reloaded')
|
||||
const tempNumSnapshots = await getProjectSercetSnapshotsCount({ workspaceId: String(router.query.id) })
|
||||
setNumSnapshots(tempNumSnapshots);
|
||||
const userWorkspaces = await getWorkspaces();
|
||||
@@ -396,7 +395,7 @@ export default function Dashboard() {
|
||||
}
|
||||
|
||||
// increasing the number of project commits
|
||||
setNumSnapshots(numSnapshots ?? 0 + 1);
|
||||
setNumSnapshots((numSnapshots ?? 0) + 1);
|
||||
};
|
||||
|
||||
const addData = (newData: SecretDataProps[]) => {
|
||||
|
||||
Reference in New Issue
Block a user