Skip to content

Commit

Permalink
Fix extension not selecting newly created profile
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Dec 9, 2023
1 parent 170083c commit 8667bf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/src/sites/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ async function initializeForm () {
// Create a new option in the select input and select it
const id = response.data
profilesElement.add(new Option(name ?? id, id, true, true), profilesElement.length - 2)
profilesElement.value = profilesElement.length - 3
profilesElement.value = id
lastProfileSelection = id

// Hide the modal
Modal.getOrCreateInstance(document.getElementById('new-profile-modal'), { backdrop: 'static', keyboard: false }).hide()
Expand Down

0 comments on commit 8667bf0

Please sign in to comment.