mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-02-20 17:12:48 +00:00
Fix Buffer to Protobuf setData casting.
This commit is contained in:
parent
3199276c83
commit
3486d94441
@ -136,11 +136,11 @@ class DeviceQueue extends Component<IProps, IState> {
|
||||
item.setConfirmed(values.confirmed);
|
||||
|
||||
if (values.hex !== undefined) {
|
||||
item.setData(Buffer.from(values.hex, "hex"));
|
||||
item.setData(new Uint8Array(Buffer.from(values.hex, "hex")));
|
||||
}
|
||||
|
||||
if (values.base64 !== undefined) {
|
||||
item.setData(Buffer.from(values.base64, "base64"));
|
||||
item.setData(new Uint8Array(Buffer.from(values.base64, "base64")));
|
||||
}
|
||||
|
||||
if (values.json !== undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user