Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
Signed-off-by: 35C4n0r <[email protected]>
  • Loading branch information
35C4n0r committed Nov 20, 2024
1 parent 1a5c47a commit ff07523
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions keep-ui/app/alerts/EnrichAlertModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const EXCLUDED_FIELDS = [
"assignee",
"source",
"pushed",
"environment"
"environment",
];

const transformAlertToEditableFields = (alert: AlertDto | null | undefined) => {
Expand All @@ -45,10 +45,10 @@ const transformAlertToEditableFields = (alert: AlertDto | null | undefined) => {
};

const EnrichAlertModal: React.FC<EnrichAlertModalProps> = ({
alert,
handleClose,
mutate,
}) => {
alert,
handleClose,
mutate,
}) => {
const isOpen = !!alert;
const { data: session } = useSession();
const apiUrl = useApiUrl();
Expand All @@ -63,7 +63,7 @@ const EnrichAlertModal: React.FC<EnrichAlertModalProps> = ({

const updateCustomField = (index: number, field: "key" | "value", value: string) => {
setCustomFields((prev) =>
prev.map((item, i) => (i === index ? { ...item, [field]: value } : item))
prev.map((item, i) => (i === index ? { ...item, [field]: value } : item)),
);
};

Expand All @@ -73,7 +73,7 @@ const EnrichAlertModal: React.FC<EnrichAlertModalProps> = ({

const handleFieldChange = (key: string, value: string) => {
setEditedFields((prev) =>
prev.map((item) => (item.key === key ? { ...item, value } : item))
prev.map((item) => (item.key === key ? { ...item, value } : item)),
);
};

Expand Down

0 comments on commit ff07523

Please sign in to comment.