Skip to content

Commit

Permalink
Remove the console log
Browse files Browse the repository at this point in the history
  • Loading branch information
torabian committed Jul 22, 2024
1 parent ede372c commit 257c471
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ export function CommonDataTable({
const newSelection = gridRows
.filter((x, i) => selIndex.includes(i))
.map((d) => d.uniqueId);
console.log(21, selIndex, newSelection);
setSelection(newSelection);
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const FormCurrency = (props: FormCurrencyProps) => {
)}
onValueChange={(value, name) => {
onChange && onChange("" + value);
console.log(value, name);
}}
/>
</BaseFormElement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ export function ReactRealDatePicker({
[field]: value,
};

console.log(newV);

// const val = valueToDateNano(+newV.year, +newV.month, +newV.day, type);
// Add 6 hours to cope with timezone issue.
// Real fix is to add time zone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ export function MenuParticle({
urws: queryWorkspaces.data?.data?.items || [],
});

console.log(25, menuRendered);

// Here we decide if there is a single item, or has children.
// if it doesn't have children, means itself is a menu

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ function Sidebar({ menu }: { menu: MenuItem | MenuItem[] }) {
menus.push(menu);
}

console.log(333, menu);

return (
<div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export function userMeetsAccess(urw: any, perm: string): boolean {
let hasPermission = false;

for (const item of (urw?.role?.capabilities || []) as CapabilityEntity[]) {
// if (perm === "root/examsessionreview/query")
// console.log("Comparing", item, urw, perm);
if (
item.uniqueId === perm ||
item.uniqueId === "root/*" ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const mockExecFn = (
item !== "constructor" &&
mockServerInstance.url[item]
) {
console.log(1, mockServerInstance.url[item], url);
const matchData = matchPattern(mockServerInstance.url[item], url);
if (
matchData &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export function source(uri: string) {
const prefix = process.env.REACT_APP_PUBLIC_URL || "";

if (uri.startsWith("$")) {
// console.log(88, uri, uri.substr(1), osResources[uri.substr(1)]);
return prefix + (osResources as any)[uri.substr(1)];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export function useFileUploader() {
files: File[],
silent: boolean = false
): Promise<string>[] => {
console.log("start", files);
const result = files.map((file) => {
return new Promise(
(resolve: (t: string) => void, reject: (err: any) => void) => {
Expand All @@ -62,7 +61,6 @@ export function useFileUploader() {
onSuccess() {
const uploadId = upload.url?.match(/([a-z0-9]){10,}/gi);
resolve(`${uploadId}`);
console.log("Success", upload);
},
onError(error) {
alert(error);
Expand Down Expand Up @@ -95,7 +93,6 @@ export function useFileUploader() {
);
});

console.log("items", result);
return result;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ export function useFileUploader() {
{ uploadId, bytesSent, bytesTotal, filename: file.name },
]);
}

console.log(bytesSent, bytesTotal);
},
});

Expand Down Expand Up @@ -494,7 +492,6 @@ export function useSocket(remote, token, workspaceId, queryClient) {
`${wsRemote}ws?token=${token}&workspaceId=${workspaceId}`
);
conn.onerror = function (evt) {
console.log("Closed", evt);
setSocketState({ state: "error" });
};
conn.onclose = function (evt) {
Expand Down

0 comments on commit 257c471

Please sign in to comment.