Skip to content

Commit 55ceed8

Browse files
ubidefeokittaakos
andauthored
handled edge case in which null might break cleanCharacters
Co-authored-by: Akos Kitta <1405703+kittaakos@users.noreply.github.com>
1 parent 80a51d6 commit 55ceed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/arduino/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function store(state, emitter) {
166166
let editor = state.cache(AceEditor, 'editor').editor
167167
let contents = cleanCharacters(editor.getValue())
168168
editor.setValue(contents)
169-
let filename = cleanCharacters(state.selectedFile) || 'undefined'
169+
let filename = cleanCharacters(state.selectedFile || 'undefined')
170170
let deviceName = getDeviceName(state.selectedDevice)
171171

172172
state.blocking = true

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy