Skip to content

Commit b14ea64

Browse files
committed
Fix bug from last commit... nullish coalescing operator will not work if name is false.
1 parent 312b003 commit b14ea64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/popup.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ function routeView(action) {
8585
*/
8686

8787
function renderCommon() {
88-
document.getElementById('activeSpaceTitle').value = globalCurrentSpace.name ?? UNSAVED_SESSION;
88+
document.getElementById(
89+
'activeSpaceTitle'
90+
).value = globalCurrentSpace.name
91+
? globalCurrentSpace.name
92+
: UNSAVED_SESSION;
8993

9094
document.querySelector('body').onkeyup = e => {
9195
// listen for escape key

0 commit comments

Comments
 (0)