feat(desktop-shell-menu): allow DevTools toggle via AGENTCOMPANY_ENABLE_DEVTOOLS
This commit is contained in:
1 parent
84d11582a3
commit
972eb5dc93
3 files changed
+11
-8
No files matched your search
@@ -186,11 +186,9 @@ export function buildSnapshotMethods(
|
||||
|
||||
listRendererSnapshot(): ProfileSnapshot {
|
||||
const currentCompanyId = deps.getCurrentCompanyId();
|
||||
if (!currentCompanyId) {
|
||||
return listSnapshot();
|
||||
}
|
||||
const snapshot = listSnapshot({ companyId: currentCompanyId });
|
||||
return snapshot;
|
||||
return currentCompanyId
|
||||
? listSnapshot({ companyId: currentCompanyId })
|
||||
: listSnapshot();
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user