-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix[csv_table]: no reference exception (#36)
* refactor[summary]: clean up code to remove deprecated processes * fix leftovers * fix leftovers * fix leftovers * refactor: code improvements * remove extra print statement * refactor: cleanup some potential bug * fix: remove extra print statement * fix(csv): handle case if no reference is found * refactor[CSV_table]: error handling in csv
- Loading branch information
1 parent
60ce24b
commit 44e1e1f
Showing
3 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useQuery } from "@tanstack/react-query"; | ||
import { GetProcessStepReferences } from "@/services/processSteps"; | ||
|
||
export const useProcessStepReferences = (process_step_id: string) => { | ||
return useQuery({ | ||
queryKey: ["processStepReferences", process_step_id], | ||
queryFn: async () => { | ||
return await GetProcessStepReferences(process_step_id); | ||
}, | ||
}); | ||
}; |