@asaleh37/ui-base 25.6.19-2 → 25.6.19-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "25.6.19-2",
3
+ "version": "25.6.19-3",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -8,8 +8,7 @@ import AttachmentPanel from "../templates/attachment/AttachmentPanel";
8
8
  import { useSelector } from "react-redux";
9
9
 
10
10
  const Home: React.FC = () => {
11
- const AppInfo = useSelector((state: any) => state.AppInfo.value);
12
- console.log("AppInfo", AppInfo);
11
+ const AppInfo = useSelector((state: any) => state.AppInfo.value);
13
12
  return (
14
13
  <Box
15
14
  sx={{
@@ -34,7 +34,6 @@ const MyNotificationsPanel: React.FC = () => {
34
34
  showMask: false,
35
35
  successCallBkFn: (response: any) => {
36
36
  setNotifications(response.data);
37
- console.log(response.data);
38
37
  },
39
38
  });
40
39
  }
@@ -341,7 +341,6 @@ const TemplateForm: React.FC<TemplateFormProps> = (
341
341
  }
342
342
  onClick={formManager.handleSubmit(
343
343
  (values) => {
344
- console.log("form values", values);
345
344
  saveRecord(values);
346
345
  },
347
346
  (errors) => {
@@ -27,8 +27,7 @@ const getGridColumnsFromRecord = (data: Array<any>) => {
27
27
  },
28
28
  };
29
29
  formElements.push(formElement);
30
- }
31
- console.log("formElements", formElements);
30
+ }
32
31
  return formElements;
33
32
  };
34
33
 
@@ -186,8 +186,7 @@ const ReportViewer: React.FC<ReportViewerProps> = (props) => {
186
186
  // Clean up
187
187
  document.body.removeChild(link);
188
188
  window.URL.revokeObjectURL(url);
189
- }
190
- console.log(response);
189
+ }
191
190
  },
192
191
  failureCallBkFn: (response) => {
193
192
  setErrorMessage(
@@ -237,6 +237,7 @@ export default function NavigationTree() {
237
237
  const { isUserAuthorized } = useSession();
238
238
  debugger;
239
239
  const filterData = (data) => {
240
+ console.log("filterDate", data);
240
241
  return data
241
242
  .filter(
242
243
  (item: any) =>
@@ -245,8 +246,8 @@ export default function NavigationTree() {
245
246
  isUserAuthorized(item.authority)
246
247
  )
247
248
  .map((item: any) => {
248
- if (item.children) {
249
- item.children = filterData(item.children);
249
+ if (item?.children) {
250
+ item.children = filterData(item?.children || []);
250
251
  }
251
252
  return item;
252
253
  });
@@ -80,9 +80,7 @@ const TopBar: React.FC = () => {
80
80
  const handleLogout = async () => {
81
81
  try {
82
82
  await handleGetRequest({ endPointURI: "api/auth/logout" });
83
- } catch (error) {
84
- console.log("logout error", error);
85
- }
83
+ } catch (error) {}
86
84
  dispatch(UserSessionActions.setUnAuthenticated());
87
85
  };
88
86
  const toggleSideBar = () => {