updated as in the interactions api
This commit is contained in:
parent
e8e32e1886
commit
c617ebf868
12 changed files with 66 additions and 50 deletions
|
|
@ -131,12 +131,11 @@ export default function DeviceComponent() {
|
|||
let isInteractionSettingsOpen =
|
||||
JSON.stringify(or(selectedInteraction, getDefaultInteraction())) !==
|
||||
JSON.stringify(getDefaultInteraction());
|
||||
const [{ user, as }] = useGlobalState();
|
||||
const [{ user, as, showErrors }] = useGlobalState();
|
||||
const [unitMeasurements, setUnitMeasurements] = useState<UnitMeasurement[]>([]);
|
||||
const [rm, setRM] = useState<pond.Measurement>(pond.Measurement.create());
|
||||
const [recentUnitMeasurement, setRecentUnitMeasurement] = useState<UnitMeasurement[]>([]);
|
||||
const [recentGoodUnitMeasurement, setRecentGoodUnitMeasurement] = useState<UnitMeasurement[]>([]);
|
||||
const [{ showErrors }] = useGlobalState();
|
||||
const sampleLimit = 200;
|
||||
const [deviceComponentPrefs, setDeviceComponentPrefs] = useState<
|
||||
pond.DeviceComponentPreferences
|
||||
|
|
@ -193,7 +192,7 @@ export default function DeviceComponent() {
|
|||
useEffect(() => {
|
||||
if (component.key() !== "") {
|
||||
interactionsAPI
|
||||
.listInteractionsByComponent(deviceID, component.location())
|
||||
.listInteractionsByComponent(deviceID, component.location(), undefined, as)
|
||||
.then((rInteractions: Interaction[]) => {
|
||||
setInteractions(rInteractions);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue