Skip to content

Commit

Permalink
update the front end websocket processing on phase planner1
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtabBukhari committed Dec 17, 2024
1 parent 6b295f0 commit b5fbae5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/people/widgetViews/PhasePlannerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ const PhasePlannerView: React.FC = observer(() => {
const history = useHistory();
const tickets = phaseTicketStore.getPhaseTickets(phase_uuid);

const getPhaseTickets = useCallback(async () => {
if (!feature_uuid || !phase_uuid) return;
const data = await main.getTicketDataByPhase(feature_uuid, phase_uuid);
return data;
}, [feature_uuid, phase_uuid, main]);

useEffect(() => {
const socket = createSocketInstance();

Expand Down Expand Up @@ -157,6 +151,12 @@ const PhasePlannerView: React.FC = observer(() => {
return data;
}, [feature_uuid, phase_uuid, main]);

const getPhaseTickets = useCallback(async () => {
if (!feature_uuid || !phase_uuid) return;
const data = await main.getTicketDataByPhase(feature_uuid, phase_uuid);
return data;
}, [feature_uuid, phase_uuid, main]);

useEffect(() => {
const fetchData = async () => {
try {
Expand Down

0 comments on commit b5fbae5

Please sign in to comment.