MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / updateField

Function updateField

ui/src/components/RelayIdInput.tsx:28–37  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

26 }, [props]);
27
28 const updateField = (v: string) => {
29 if (byteOrder === "lsb") {
30 const bytes = v.match(/[A-Fa-f0-9]{2}/g) || [];
31 v = bytes.reverse().join("");
32 }
33
34 form.setFieldsValue({
35 [props.name]: v,
36 });
37 };
38
39 const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {
40 const v = e.target.value;

Callers 3

onChangeFunction · 0.85
onByteOrderSelectFunction · 0.85
generateRandomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected