MCPcopy Create free account
hub / github.com/error311/FileRise / refreshVisibleFolderForOutputFile

Function refreshVisibleFolderForOutputFile

public/js/aiChat.js:1167–1174  ·  view source on GitHub ↗
(savedFile)

Source from the content-addressed store, hash-verified

1165 const watchedJobs = new Map();
1166
1167 const refreshVisibleFolderForOutputFile = (savedFile) => {
1168 if (!savedFile || typeof savedFile !== 'object') return;
1169 const fileSourceId = normalizeSourceId(savedFile.sourceId || 'local');
1170 const fileFolder = normalizeFolderPath(savedFile.folder || 'root');
1171 if (fileSourceId !== getActiveSourceId()) return;
1172 if (fileFolder !== getActiveFolder()) return;
1173 refreshFolderView(fileFolder);
1174 };
1175
1176 const refreshVisibleFolderForAutomationDetail = (detail) => {
1177 const job = (detail && typeof detail === 'object' && detail.job && typeof detail.job === 'object') ? detail.job : null;

Callers 1

pollFunction · 0.85

Calls 5

getActiveFolderFunction · 0.85
refreshFolderViewFunction · 0.85
normalizeSourceIdFunction · 0.70
normalizeFolderPathFunction · 0.70
getActiveSourceIdFunction · 0.70

Tested by

no test coverage detected