Skip to content

Commit

Permalink
Merge branch 'break/remove-endpoints' of github.com:RocketChat/Rocket…
Browse files Browse the repository at this point in the history
….Chat into break/remove-endpoints
  • Loading branch information
KevLehman committed Jun 27, 2022
2 parents 7208523 + e56f5e8 commit 8cfb4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion apps/meteor/.mocharc.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ module.exports = {
'tests/end-to-end/api/*.js',
'tests/end-to-end/api/*.ts',
'tests/end-to-end/apps/*.js',
'tests/end-to-end/api/livechat/*.js',
],
};
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { Callout } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import React, { useMemo } from 'react';
import React from 'react';

import { FormSkeleton } from '../../../../client/components/Skeleton';
import { AsyncStatePhase } from '../../../../client/hooks/useAsyncState';
import { useEndpointData } from '../../../../client/hooks/useEndpointData';
import PriorityEdit from './PriorityEdit';

function PriorityEditWithData({ priorityId, reload }) {
const query = useMemo(() => ({ priorityId }), [priorityId]);
const { value: data, phase: state, error } = useEndpointData('/v1/livechat/priorities.getOne', query);
const { value: data, phase: state, error } = useEndpointData(`/v1/livechat/priorities/${priorityId}`);

const t = useTranslation();

Expand Down

0 comments on commit 8cfb4f8

Please sign in to comment.