Skip to content

Commit ca6b11e

Browse files
authored
fix(agent-tars): report white screen (close: #347) (#348)
1 parent 7da91ec commit ca6b11e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/agent-tars/src/renderer/src/hooks/useFileSystemSettings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import { useEffect, useState } from 'react';
22
import { ipcClient } from '@renderer/api';
3+
import { isReportHtmlMode } from '@renderer/constants';
34

45
export function useFileSystemSettings() {
56
const [initialized, setInitialized] = useState(false);
67

78
useEffect(() => {
9+
if (isReportHtmlMode) {
10+
return;
11+
}
812
async function initFileSystemSettings() {
913
try {
1014
// Get current allowed directories from main process

0 commit comments

Comments
 (0)