fix: Settings in Folder trust hook (#7343)

This commit is contained in:
shrutip90 2025-08-28 12:57:06 -07:00 committed by GitHub
parent 03bcbcc10d
commit 1fc1c2b4e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,8 +28,12 @@ export const useFolderTrust = (
useEffect(() => {
const trusted = isWorkspaceTrusted({
folderTrust,
folderTrustFeature,
security: {
folderTrust: {
featureEnabled: folderTrustFeature,
enabled: folderTrust,
},
},
} as Settings);
setIsTrusted(trusted);
setIsFolderTrustDialogOpen(trusted === undefined);