run prettier formatting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -32,7 +32,11 @@ type Props = {
|
||||
export const EscalationPolicy = ({ policyId }: Props) => {
|
||||
const api = useApi(pagerDutyApiRef);
|
||||
|
||||
const { value: users, loading, error } = useAsync(async () => {
|
||||
const {
|
||||
value: users,
|
||||
loading,
|
||||
error,
|
||||
} = useAsync(async () => {
|
||||
const oncalls = await api.getOnCallByPolicyId(policyId);
|
||||
const usersItem = oncalls
|
||||
.sort((a, b) => a.escalation_level - b.escalation_level)
|
||||
|
||||
@@ -55,7 +55,11 @@ export const PagerDutyCard = () => {
|
||||
setRefreshIncidents(x => !x);
|
||||
}, []);
|
||||
|
||||
const { value: service, loading, error } = useAsync(async () => {
|
||||
const {
|
||||
value: service,
|
||||
loading,
|
||||
error,
|
||||
} = useAsync(async () => {
|
||||
const services = await api.getServiceByIntegrationKey(
|
||||
integrationKey as string,
|
||||
);
|
||||
|
||||
@@ -92,9 +92,8 @@ describe('TriggerDialog', () => {
|
||||
});
|
||||
expect(mockTriggerAlarmFn).toHaveBeenCalled();
|
||||
expect(mockTriggerAlarmFn).toHaveBeenCalledWith({
|
||||
integrationKey: entity!.metadata!.annotations![
|
||||
'pagerduty.com/integration-key'
|
||||
],
|
||||
integrationKey:
|
||||
entity!.metadata!.annotations!['pagerduty.com/integration-key'],
|
||||
source: window.location.toString(),
|
||||
description,
|
||||
userName: 'guest@example.com',
|
||||
|
||||
Reference in New Issue
Block a user