13 lines
312 B
JavaScript
13 lines
312 B
JavaScript
export function restartSnapshot(snapshot, now = new Date().toISOString()) {
|
|
return {
|
|
...snapshot,
|
|
situationGraph: null,
|
|
selectedQuestion: null,
|
|
summary: null,
|
|
focusedContributions: [],
|
|
findings: [],
|
|
investigationReport: null,
|
|
investigationRevision: 0,
|
|
updatedAt: now,
|
|
};
|
|
} |