Skip to content

Commit

Permalink
Merge branch 'main' into fix_default_disposability_for_notes
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Oct 24, 2024
2 parents 91af053 + 7290eb0 commit e27c93a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions keep-ui/app/incidents/[id]/incident-activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { AuditEvent, useAlerts } from "@/utils/hooks/useAlerts";
import Loading from "@/app/loading";
import { useCallback, useState, useEffect } from "react";
import { getApiURL } from "@/utils/apiUrl";
import { useApiUrl } from "@/utils/hooks/useConfig";
import { useSession } from "next-auth/react";
import { KeyedMutator } from "swr";
import { toast } from "react-toastify";
Expand Down Expand Up @@ -59,7 +59,6 @@ export function IncidentActivityChronoItem({ activity }: { activity: any }) {
);
}


export function IncidentActivityChronoItemComment({
incident,
mutator,
Expand All @@ -68,7 +67,7 @@ export function IncidentActivityChronoItemComment({
mutator: KeyedMutator<AuditEvent[]>;
}) {
const [comment, setComment] = useState("");
const apiUrl = getApiURL();
const apiUrl = useApiUrl();
const { data: session } = useSession();

const onSubmit = useCallback(async () => {
Expand Down

0 comments on commit e27c93a

Please sign in to comment.