1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

Fix issue on hot reload when user object was null

This commit is contained in:
Andrew Kingston 2021-05-21 13:17:35 +01:00
parent 4b106ace56
commit 1b56560cea

View file

@ -41,8 +41,8 @@
const enrichedApps = apps.map(app => ({
...app,
deployed: app.status === AppStatus.DEPLOYED,
lockedYou: app.lockedBy?.email === user.email,
lockedOther: app.lockedBy && app.lockedBy.email !== user.email,
lockedYou: app.lockedBy && app.lockedBy.email === user?.email,
lockedOther: app.lockedBy && app.lockedBy.email !== user?.email,
}))
if (sortBy === "status") {
return enrichedApps.sort((a, b) => {