ironmansoftware / universal-automation

Universal Automation is the PowerShell-first automation platform.
https://ironmansoftware.com/universal-automation/
MIT License
24 stars 4 forks source link

Visiting /Script throws an error #1

Closed PorreKaj closed 4 years ago

PorreKaj commented 4 years ago

Describe the Issue

Clicking a script in the gui redirects to /script/1 (for script ID 1), this throws an error:

An error occurred on this page Exception calling "Invoke" with "0" argument(s): "Exception calling "Invoke" with "0" argument(s): "Exception calling "Invoke" with "0" argument(s): "A parameter cannot be found that matches parameter name 'Top'."""

Script Sample

Just the beta getting started with debug enabled

Version Information

adamdriscoll commented 4 years ago

Woops.

image

PorreKaj commented 4 years ago

big oof!

adamdriscoll commented 4 years ago

Fixed. Will be in tonight's build. You can work around this by changing line 79 of script.ps1 in UniversalAutomation.Dashboard\pages to:

$ScriptHistory = Get-UAScriptHistory -Script $Script | Sort-Object -Property 'Timestamp' -Descending | Select-Object -First 1