use @snort/system cache

This commit is contained in:
2023-06-15 12:03:05 +01:00
parent c2a3a706de
commit fc11381ccd
79 changed files with 679 additions and 524 deletions

View File

@ -5,6 +5,7 @@ import { FormattedMessage } from "react-intl";
import { useNavigate } from "react-router-dom";
import { mapEventToProfile } from "@snort/system";
import { System } from "index";
import useEventPublisher from "Feed/EventPublisher";
import { useUserProfile } from "Hooks/useUserProfile";
import { openFile } from "SnortUtils";
@ -77,7 +78,7 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
if (publisher) {
const ev = await publisher.metadata(userCopy);
publisher.broadcast(ev);
System.BroadcastEvent(ev);
const newProfile = mapEventToProfile(ev);
if (newProfile) {