Skip to content

Commit

Permalink
Merge pull request #85 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
pull[bot] authored Feb 10, 2025
2 parents 5b37bd3 + b024c96 commit 6d2b2ba
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/components/CippComponents/CippApiDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ export const CippApiDialog = (props) => {
useEffect(() => {
if (api?.setDefaultValues && createDialog.open) {
fields.map((field) => {
console.log(field.name, row[field.name]);
if (
((typeof row[field.name] === "string" && field.type === "textField") ||
(typeof row[field.name] === "boolean" && field.type === "switch")) &&
Expand Down Expand Up @@ -308,7 +307,6 @@ export const CippApiDialog = (props) => {
} else if (Array.isArray(row) && row.length > 1) {
confirmText = api.confirmText.replace(/\[([^\]]+)\]/g, "the selected rows");
} else if (Array.isArray(row) && row.length === 1) {
console.log("single row in array");
confirmText = api.confirmText.replace(/\[([^\]]+)\]/g, (_, key) => {
return getNestedValue(row[0], key) || `[${key}]`;
});
Expand Down
1 change: 0 additions & 1 deletion src/components/CippComponents/CippAutocomplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ export const CippAutoComplete = (props) => {
options.some(
(option) => params.inputValue === option.value || params.inputValue === option.label
);
console.log(removeOptions);
if (params.inputValue !== "" && creatable && !isExisting) {
filtered.push({
label: `Add option: "${params.inputValue}"`,
Expand Down
6 changes: 5 additions & 1 deletion src/components/CippTable/CIPPTableToptoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export const CIPPTableToptoolbar = ({
}
}, [settings?.columnDefaults?.[pageName], router, usedColumns]);

useEffect(() => {
setOriginalSimpleColumns(simpleColumns);
}, [simpleColumns]);

const presetList = ApiGetCall({
url: "/api/ListGraphExplorerPresets",
queryKey: `ListGraphExplorerPresets${api?.data?.Endpoint ?? ""}`,
Expand Down Expand Up @@ -254,7 +258,7 @@ export const CIPPTableToptoolbar = ({
// update filters to include graph explorer presets
setFilterList([...filters, ...graphPresetList]);
}
}, [presetList?.isSuccess]);
}, [presetList?.isSuccess, simpleColumns]);

return (
<>
Expand Down
4 changes: 4 additions & 0 deletions src/components/CippTable/CippDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ export const CippDataTable = (props) => {
}
}, [table.getSelectedRowModel().rows]);

useEffect(() => {
setConfiguredSimpleColumns(simpleColumns);
}, [simpleColumns]);

return (
<>
{noCard ? (
Expand Down
1 change: 0 additions & 1 deletion src/components/CippTable/CippGraphExplorerFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ const CippGraphExplorerFilter = ({

function getPresetProps(values) {
var newvals = Object.assign({}, values);
console.log(values);
if (newvals?.$select !== undefined && Array.isArray(newvals?.$select)) {
newvals.$select = newvals?.$select.map((p) => p.value).join(",");
}
Expand Down
1 change: 0 additions & 1 deletion src/pages/endpoint/applications/list/add.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ const ApplicationDeploymentForm = () => {
</Grid>
{selectedTenants?.map((tenant, index) => (
<Grid item xs={12} md={6} key={tenant.addedFields.customerId || index}>
{console.log(tenant)}
<CippFormComponent
type="textField"
label={`Datto ID for ${tenant.label}`}
Expand Down
1 change: 0 additions & 1 deletion src/pages/identity/administration/users/user/edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const Page = () => {
defaultAttributes[attribute.label] = { Value: user?.[attribute.label] };
});
}
console.log(defaultAttributes);
formControl.reset({
...user,
defaultAttributes: defaultAttributes,
Expand Down
1 change: 0 additions & 1 deletion src/pages/tenant/standards/template.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const Page = () => {
if (match) {
standardName = match[1];
}
console.log("Adding multiple", standardName);

setSelectedStandards((prev) => {
const existingInstances = Object.keys(prev).filter((name) => name.startsWith(standardName));
Expand Down

0 comments on commit 6d2b2ba

Please sign in to comment.