MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / clearReportAnnotations

Function clearReportAnnotations

deployments/desktop/static/desktop.js:2915–2925  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2913 }
2914
2915 function clearReportAnnotations() {
2916 if (!state.currentReport?.report_id) return;
2917 try {
2918 window.localStorage.removeItem(reportAnnotationKey(state.currentReport.report_id));
2919 } catch (error) {
2920 console.warn("Unable to clear report annotation", error);
2921 }
2922 $("reportViewerBody").innerHTML = renderMarkdown(state.currentReport.markdown || "");
2923 $("clearReportAnnotationsBtn").disabled = true;
2924 hideReportAnnotationToolbar();
2925 }
2926
2927 function renderReportList(reports, activeId = "") {
2928 const target = $("reportsList");

Callers

nothing calls this directly

Calls 4

reportAnnotationKeyFunction · 0.85
$Function · 0.70
renderMarkdownFunction · 0.70

Tested by

no test coverage detected