Skip to content

Commit

Permalink
fix transpose typing
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Jan 29, 2024
1 parent c0ba8c6 commit ad7e444
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
# workflow: LedFx BuildPipeline
repo: YeonV/LedFx-Builds
token: ${{ secrets.FRONTEND_TOKEN }}
inputs: '{ "fversion": "${{ steps.get-id.outputs.id}}", "release": "${{ startsWith(github.event.head_commit.message, `Beta`) && `No` || `Yes` }}" }'
inputs: '{ "fversion": "${{ steps.get-id.outputs.id}}", "release": "${{ startsWith(github.event.head_commit.message, \"Beta\") && \"No\" || \"Yes\" }}" }'

- name: 📂 Sync files
continue-on-error: true
Expand Down
9 changes: 6 additions & 3 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* eslint-disable */

import { IMCell } from '../pages/Devices/EditVirtuals/EditMatrix/M.utils'

/* eslint-disable @typescript-eslint/indent */
export const drawerWidth = 240
export const frontendConfig = 12
Expand Down Expand Up @@ -136,10 +139,10 @@ export const ordered = (unordered: Record<string, any>) =>
return obj
}, {})

export function transpose<T>(matrix: T[][]): T[][] {
const res: T[][] = []
export function transpose(matrix: IMCell[][]) {
const res = [] as IMCell[][]
for (let i = 0; i < matrix[0].length; i++) {
res[i] = [] as T[]
res[i] = [] as IMCell[]
for (let j = 0; j < matrix.length; j++) {
res[i][j] = matrix[j][i]
}
Expand Down

0 comments on commit ad7e444

Please sign in to comment.