Skip to content

Commit ec733ca

Browse files
committed
Check if there is a diskNavigationRoot before refreshing files
1 parent 5143078 commit ec733ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: ui/arduino/main.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ window.addEventListener('load', () => {
4848
app.mount('#app')
4949

5050
app.emitter.on('DOMContentLoaded', () => {
51-
app.emitter.emit('refresh-files')
51+
if (app.state.diskNavigationRoot) {
52+
app.emitter.emit('refresh-files')
53+
}
5254
})
5355

5456
})

0 commit comments

Comments
 (0)