Refresh compliance list after sidebar metadata save
The host list on the compliance page showed stale resolution date and remediation plan values after editing them in the detail sidebar, until an unrelated refresh (filter, team, or tab change) ran. handleSaveMetadata re-fetched only the panel's own detail and never notified the parent. Add an onMetadataSaved callback invoked after a successful metadata PATCH and wire it to the existing list refresh in CompliancePage, mirroring the onNoteAdded pattern. The list now reflects saved changes immediately. Closes #23
This commit is contained in:
@@ -697,6 +697,7 @@ export default function CompliancePage({ onNavigate }) {
|
||||
hostname={selectedHost}
|
||||
onClose={() => setSelectedHost(null)}
|
||||
onNoteAdded={refresh}
|
||||
onMetadataSaved={refresh}
|
||||
onNavigate={onNavigate}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user