Skip to content

Commit 2aba36a

Browse files
committed
fix(dashboard): resolve project deletion and dashboard project count bugs
1 parent b530f94 commit 2aba36a

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

apps/dashboard-api/src/controllers/project.controller.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,10 +2272,7 @@ module.exports.deleteProject = async (req, res) => {
22722272
_id: projectId,
22732273
owner: req.user._id,
22742274
}).select(
2275-
"+resources.storage.config.encrypted " +
2276-
"+resources.storage.config.iv " +
2277-
"+resources.storage.config.tag " +
2278-
"publishableKey secretKey",
2275+
"+resources.storage.config.encrypted +resources.storage.config.iv +resources.storage.config.tag"
22792276
);
22802277

22812278
if (!project) {

apps/web-dashboard/src/pages/Dashboard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export default function Dashboard() {
304304
<span style={{ fontSize: '0.7rem', color: 'var(--color-text-muted)', display: 'flex', alignItems: 'center', gap: '6px' }}>
305305
<LayoutGrid size={12} /> Total Projects
306306
</span>
307-
<span style={{ fontSize: '1.25rem', fontWeight: 700 }}>{myOwnedProjects.length}</span>
307+
<span style={{ fontSize: '1.25rem', fontWeight: 700 }}>{projects.length}</span>
308308
</div>
309309
<div style={{ display: 'flex', flexDirection: 'column', gap: '2px' }}>
310310
<span style={{ fontSize: '0.7rem', color: 'var(--color-text-muted)', display: 'flex', alignItems: 'center', gap: '6px' }}>

0 commit comments

Comments
 (0)