Skip to content

Commit

Permalink
Merge pull request #475 from KxSystems/fix-ipc-qchar
Browse files Browse the repository at this point in the history
fix ipc qchar
  • Loading branch information
Philip-Carneiro-KX authored Dec 12, 2024
2 parents 09eee87 + 39acb36 commit 56b05e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ipc/QChar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export default class QChar extends U8 {
static listToIPC(values: Array<string>): Uint8Array {
const charData = values.map((v) => u8u16(v && v.length ? v[0] : " "));

// eslint-disable-next-line prefer-spread
const merged = ([] as number[]).concat.apply([], charData);
const merged = (charData as any).flat();
const size = charData.length + 6;
const buffer = TypeBase.createBuffer(size);

Expand Down

0 comments on commit 56b05e4

Please sign in to comment.