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 9fdb9491c5
commit 2567737da1
+6 -2
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);