Skip to content

Commit

Permalink
Fix provider generator file tool handling on different pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cal0pteryx committed Dec 12, 2023
1 parent acec1e6 commit 50432a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions themes/xmpp-providers/static/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,11 @@ function initialize_provider_api_version_select() {
"provider_api_version_select_container"
);

if (!container) {
// We are on a differnt page
return
}

const api_select_row = document.createElement("div")
api_select_row.classList.add("row", "pb-4")

Expand Down Expand Up @@ -498,6 +503,10 @@ function initialize_provider_data_form() {
const container = document.getElementById(
"provider_file_form_container"
);
if (!container) {
// We are on a differnt page
return
}
container.innerHTML = ""

const selected_api_version = document.getElementById("api_version_select").value
Expand Down

0 comments on commit 50432a7

Please sign in to comment.