mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 09:23:00 +00:00
feat: enable stricter type checking options
feat: make the app more fault tolerant
This commit is contained in:
@@ -121,9 +121,11 @@
|
||||
|
||||
function edit(index: number) {
|
||||
const keyInfo = layoutInfo.keys[index];
|
||||
if (!keyInfo) return;
|
||||
const clickedGroup = groupParent.children.item(index) as SVGGElement;
|
||||
const nextAction = get(layout)[get(activeLayer)][keyInfo.id];
|
||||
const currentAction = get(deviceLayout)[get(activeLayer)][keyInfo.id];
|
||||
const nextAction = get(layout)[get(activeLayer)]?.[keyInfo.id];
|
||||
const currentAction = get(deviceLayout)[get(activeLayer)]?.[keyInfo.id];
|
||||
if (!nextAction || !currentAction) return;
|
||||
const component = new ActionSelector({
|
||||
target: document.body,
|
||||
props: {
|
||||
|
||||
Reference in New Issue
Block a user