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

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);