=> {
try {
await updateEntity(suppressing);
setNotif({
message: i18n.str`Entity row with id: ${suppressing} has been suppressed`,
type: "SUCCESS",
});
} catch (error) {
setNotif({
message: i18n.str`Failed to suppress row`,
type: "ERROR",
description: error instanceof Error ? error.message : undefined,
});
}
setSuppressing(null);
}}
>
Suppressing a row cannot be undone in this GUI.