mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
forward progress
This commit is contained in:
@@ -31,7 +31,7 @@ export const Groups = (args) => {
|
||||
|
||||
export const Calls = (args) => {
|
||||
|
||||
const { data, isError, isLoading, isSuccess,error } = useGetCallsQuery(args.shortName);
|
||||
const { data, isError, isLoading, isSuccess,error } = useGetCallsQuery({shortName: args.shortName});
|
||||
|
||||
let content
|
||||
|
||||
|
||||
@@ -27,9 +27,10 @@ export const apiSlice = createApi({
|
||||
}),
|
||||
getCalls: builder.query({
|
||||
// The URL for the request is '/fakeApi/posts'
|
||||
query: (shortName) => ({
|
||||
query: ({shortName,filterType=0,filterCode=0}) => ({
|
||||
url: `/${shortName}/calls`,
|
||||
method: "GET" //, params: { filterType, filterCode },
|
||||
method: "GET",
|
||||
params: { filterType, filterCode },
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user