fix: small bugfixes and improvements
This commit is contained in:
parent
f6547341f1
commit
c45241471e
14 changed files with 97 additions and 205 deletions
|
|
@ -34,7 +34,7 @@ const GET_MACHINES = gql`
|
|||
}
|
||||
`
|
||||
|
||||
const NUM_LOG_RESULTS = 1000
|
||||
const NUM_LOG_RESULTS = 500
|
||||
|
||||
const GET_MACHINE_LOGS = gql`
|
||||
query MachineLogs($deviceId: ID!, $limit: Int, $from: Date, $until: Date) {
|
||||
|
|
@ -72,11 +72,7 @@ const Logs = () => {
|
|||
|
||||
const deviceId = selected?.deviceId
|
||||
|
||||
const { data: machineResponse } = useQuery(GET_MACHINES, {
|
||||
variables: {
|
||||
limit: NUM_LOG_RESULTS
|
||||
}
|
||||
})
|
||||
const { data: machineResponse } = useQuery(GET_MACHINES)
|
||||
|
||||
const [sendSnapshot, { loading }] = useMutation(SUPPORT_LOGS, {
|
||||
variables: { deviceId },
|
||||
|
|
@ -85,7 +81,7 @@ const Logs = () => {
|
|||
})
|
||||
|
||||
const { data: logsResponse } = useQuery(GET_MACHINE_LOGS, {
|
||||
variables: { deviceId },
|
||||
variables: { deviceId, limit: NUM_LOG_RESULTS },
|
||||
skip: !selected,
|
||||
onCompleted: () => setSaveMessage('')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue