()
| 156 | recorder.startRecording() |
| 157 | } |
| 158 | |
| 159 | const handleSaveEditing = () => { |
| 160 | const id = editingId() |
| 161 | if (id) { |
| 162 | setShortcuts((prev) => |
| 163 | prev.map((s) => |
| 164 | s.id === id |
| 165 | ? { ...s, name: draftName(), description: draftDescription() } |
| 166 | : s, |
| 167 | ), |
| 168 | ) |
| 169 | recorder.stopRecording() |
| 170 | setEditingId(null) |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | const handleCancel = () => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…