Skip to content

Commit

Permalink
Don't create store inside of a loop
Browse files Browse the repository at this point in the history
  • Loading branch information
yanfali committed Mar 5, 2022
1 parent f435f3d commit 7d993f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function getDefaultLayout() {

function mapKeymap(arr) {
// Create look up table for QMK Code to Layout position
const keycodesStore = useKeycodesStore();
return arr.map((code) => {
const keycodesStore = useKeycodesStore();
const meta = keycodesStore.lookupKeycode(code);
return {
...meta
Expand Down

0 comments on commit 7d993f3

Please sign in to comment.