mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-11-02 03:07:46 +00:00
Getting newest only for device commands
This commit is contained in:
@@ -95,7 +95,7 @@ const DeviceCommands = ({ selectedDeviceId }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
axiosInstance
|
axiosInstance
|
||||||
.get(`/commands?serialNumber=${encodeURIComponent(selectedDeviceId)}`, options)
|
.get(`/commands?newest=true&serialNumber=${encodeURIComponent(selectedDeviceId)}`, options)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
setCommands(response.data.commands);
|
setCommands(response.data.commands);
|
||||||
})
|
})
|
||||||
@@ -289,7 +289,7 @@ const DeviceCommands = ({ selectedDeviceId }) => {
|
|||||||
border
|
border
|
||||||
columnFilter
|
columnFilter
|
||||||
sorter
|
sorter
|
||||||
sorterValue={{ column: 'completed', desc: 'true' }}
|
sorterValue={{ column: 'submitted', desc: 'true' }}
|
||||||
scopedSlots={{
|
scopedSlots={{
|
||||||
completed: (item) => (
|
completed: (item) => (
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user