From b51a2a2d9bf7fab3bb6875944a81e8f1dcee7095 Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Wed, 3 Jul 2019 09:45:17 -0600 Subject: [PATCH 1/4] Fixes #935 #934 --- src/UniversalDashboard/Server/DashboardHub.cs | 4 ++++ src/poshud/utils.ps1 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/UniversalDashboard/Server/DashboardHub.cs b/src/UniversalDashboard/Server/DashboardHub.cs index a3e352de..637e93ce 100644 --- a/src/UniversalDashboard/Server/DashboardHub.cs +++ b/src/UniversalDashboard/Server/DashboardHub.cs @@ -14,6 +14,7 @@ using UniversalDashboard.Services; using System.Text; using UniversalDashboard.Models.Enums; +using Microsoft.CSharp.RuntimeBinder; namespace UniversalDashboard { @@ -242,6 +243,9 @@ public Task ClientEvent(string eventId, string eventName, string eventData, stri Clients.Client(Context.ConnectionId).SendAsync("showError", new { message = error.Message }); } + } + catch (RuntimeBinderException) { + } catch (Exception ex) { diff --git a/src/poshud/utils.ps1 b/src/poshud/utils.ps1 index fb9f2503..2095e20f 100644 --- a/src/poshud/utils.ps1 +++ b/src/poshud/utils.ps1 @@ -3,7 +3,7 @@ function New-UDComponentPage { $Command ) - New-UDPage -Name $Command -Endpoint { + New-UDPage -Name $Command -Content { $Help = Get-Help $Command -Full $OnlineVersion = $Help.relatedLinks.navigationLink | Where-Object linkText -eq 'Online Version:' | Select-Object -ExpandProperty uri From f9d29126bdda78d6a9dfc79a34dcf5f95e24c012 Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Wed, 3 Jul 2019 09:47:43 -0600 Subject: [PATCH 2/4] Re-fix fab issue? --- .../Components/ud-fab.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/UniversalDashboard.Materialize/Components/ud-fab.jsx b/src/UniversalDashboard.Materialize/Components/ud-fab.jsx index 00fe73ae..d67c34b5 100644 --- a/src/UniversalDashboard.Materialize/Components/ud-fab.jsx +++ b/src/UniversalDashboard.Materialize/Components/ud-fab.jsx @@ -31,8 +31,14 @@ export default class UDFab extends React.Component { icon = } - var children = this.props.content.map(x => ); - + var content = this.props.content; + + if (!Array.isArray(content)) { + content = [content] + } + + var children = content.map(x => ); + return