Update TGBeta.ps1

This commit is contained in:
2025-01-07 01:30:28 -05:00
parent 469b78c537
commit b5f988b734

View File

@@ -824,8 +824,8 @@ function GetHtmlContent {
function triggerInstall() { function triggerInstall() {
const dropdown = document.getElementById('dattoRmmDropdown'); const dropdown = document.getElementById('dattoRmmDropdown');
const UID = dropdown.options[dropdown.selectedIndex].value; const UID = dropdown.options[dropdown.selectedIndex]?.value || null;
const Name = dropdown.options[dropdown.selectedIndex].text; const Name = dropdown.options[dropdown.selectedIndex]?.text || null;
const setSVSPowerplan = document.querySelector('input[name="setSVSPowerplan"]'); const setSVSPowerplan = document.querySelector('input[name="setSVSPowerplan"]');
const installSVSMSPModule = document.querySelector('input[name="installSVSMSPModule"]'); const installSVSMSPModule = document.querySelector('input[name="installSVSMSPModule"]');