We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a94d0a commit fcc0c8fCopy full SHA for fcc0c8f
1 file changed
src/modules/workspace/workspaces-drawer/drawer.js
@@ -243,13 +243,12 @@ export const createWorkspacesDrawer = ({
243
placeholder.selected = !filteredEntries.some(entry => entry.id === selectedId)
244
selectInput.append(placeholder)
245
246
+ const activeWorkspaceId =
247
+ typeof getActiveWorkspaceId === 'function' ? toSafeText(getActiveWorkspaceId()) : ''
248
+
249
for (const entry of filteredEntries) {
250
const option = document.createElement('option')
251
option.value = toSafeText(entry.id)
- const activeWorkspaceId =
- typeof getActiveWorkspaceId === 'function'
- ? toSafeText(getActiveWorkspaceId())
252
- : ''
253
const activeWorkspaceDisplayLabel =
254
option.value &&
255
option.value === activeWorkspaceId &&
0 commit comments