Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Oct 10, 2023
2 parents a13d053 + 94c331e commit bcf1c4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/tables/CippDatatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export default function CippDatatable({ path, params, ...rest }) {
}
return (
<>
{data[0]?.Queued && <CCallout color="info">{data[0]?.QueueMessage}</CCallout>}
{data?.Metadata?.Queued && <CCallout color="info">{data?.Metadata?.QueueMessage}</CCallout>}
<CippTable
{...rest}
data={data[0]?.Queued ? [] : data}
data={Array.isArray(data?.Results) ? data?.Results : data}
isFetching={isFetching}
error={error}
defaultFilterText={defaultFilterText}
Expand Down
4 changes: 3 additions & 1 deletion src/views/cipp/Scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ const Scheduler = () => {
paramblock = parameters.map((param, idx) => (
<CRow key={idx} className="mb-3">
<CCol>
{param.Type === 'System.Boolean' ? (
{param.Type === 'System.Boolean' ||
param.Type ===
'System.Management.Automation.SwitchParameter' ? (
<>
<label>{param.Name}</label>
<RFFCFormSwitch
Expand Down
2 changes: 1 addition & 1 deletion src/views/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const Home = () => {
{(isLoadingPartners || isFetchingPartners) && <Skeleton />}
{issuccessPartners &&
!isFetchingPartners &&
partners.map((partner) => {
partners?.Results.map((partner) => {
if (partner.TenantInfo) {
return (
<li key={`${partner.tenantId}`}>
Expand Down

0 comments on commit bcf1c4a

Please sign in to comment.