UI bug fixes for the dashboard

This commit is contained in:
Vladyslav Matsiiako
2023-01-05 23:15:05 -08:00
parent 054b3e3450
commit d90affbe87
6 changed files with 11 additions and 10 deletions
+1 -2
View File
@@ -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[]) => {