mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-31 07:55:23 +00:00
parent
651fcfce43
commit
dac4f15f40
@ -1,4 +1,4 @@
|
||||
import React, { useState } from "react";
|
||||
import React, { useState, useEffect } from "react";
|
||||
|
||||
import { Form, Input, Button, Select } from "antd";
|
||||
|
||||
@ -16,6 +16,10 @@ interface IProps {
|
||||
function InfluxDbIntegrationForm(props: IProps) {
|
||||
const [selectedVersion, setSelectedVersion] = useState<InfluxDbVersion>(InfluxDbVersion.INFLUXDB_1);
|
||||
|
||||
useEffect(() => {
|
||||
setSelectedVersion(props.initialValues.getVersion());
|
||||
}, [props]);
|
||||
|
||||
const onFinish = (values: InfluxDbIntegration.AsObject) => {
|
||||
const v = Object.assign(props.initialValues.toObject(), values);
|
||||
let i = new InfluxDbIntegration();
|
||||
|
Loading…
x
Reference in New Issue
Block a user