From 02f8b66b1e6a8bac9173d14835214fc123fbf68b Mon Sep 17 00:00:00 2001 From: John Duprey Date: Mon, 9 Oct 2023 21:27:06 -0400 Subject: [PATCH 1/3] CippDatatable.js - Add metadata/results support --- src/components/tables/CippDatatable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tables/CippDatatable.js b/src/components/tables/CippDatatable.js index e36befb3dea3..188c44542c82 100644 --- a/src/components/tables/CippDatatable.js +++ b/src/components/tables/CippDatatable.js @@ -20,10 +20,10 @@ export default function CippDatatable({ path, params, ...rest }) { } return ( <> - {data[0]?.Queued && {data[0]?.QueueMessage}} + {data?.Metadata?.Queued && {data?.Metadata?.QueueMessage}} Date: Mon, 9 Oct 2023 21:29:58 -0400 Subject: [PATCH 2/3] Update Home.js --- src/views/home/Home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/home/Home.js b/src/views/home/Home.js index 1473119811aa..c802805552af 100644 --- a/src/views/home/Home.js +++ b/src/views/home/Home.js @@ -333,7 +333,7 @@ const Home = () => { {(isLoadingPartners || isFetchingPartners) && } {issuccessPartners && !isFetchingPartners && - partners.map((partner) => { + partners?.Results.map((partner) => { if (partner.TenantInfo) { return (
  • From 45a00aed7f04fa7606c60f0e961f6ab84a9f2235 Mon Sep 17 00:00:00 2001 From: John Duprey Date: Tue, 10 Oct 2023 07:16:02 -0400 Subject: [PATCH 3/3] Add switch parameter types --- src/views/cipp/Scheduler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/cipp/Scheduler.js b/src/views/cipp/Scheduler.js index 8483c2c477b2..cdd8ed9474ef 100644 --- a/src/views/cipp/Scheduler.js +++ b/src/views/cipp/Scheduler.js @@ -283,7 +283,9 @@ const Scheduler = () => { paramblock = parameters.map((param, idx) => ( - {param.Type === 'System.Boolean' ? ( + {param.Type === 'System.Boolean' || + param.Type === + 'System.Management.Automation.SwitchParameter' ? ( <>