You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { FwPlatformTable, FwFilter } from '@freshworks/crayons-custom-objects/react';
"@freshworks/crayons-custom-objects": "^1.3.0-beta.15",
Describe the bug
A clear and concise description of the issue.
When we select the range of the Date, and add it to the filter, we end up getting the fromDate and toDate Object which is being used as parameters as well, however it is not being shown same as the value here.
The behaviour is being repeated in case of change of range as well.
Most of the time, we are observing this error
On change of date range in filter, this is being observed.
"01 Jun 2023 to 03 Jun 2023" is the value being passed which leads to an issue over this function.
// If ISO format, format it to display format and validate
let [fromDate, toDate] = (value === null || value === void 0 ? void 0 : value.split(TranslationController.t('datepicker.to'))) || [];
fromDate = fromDate === null || fromDate === void 0 ? void 0 : fromDate.trim();
toDate = toDate === null || toDate === void 0 ? void 0 : toDate.trim();
Invalid date provided ! TypeError: e.split is not a function
at n.value (datepicker.js:1750:89)
at index.js:1906:38
at Array.map (<anonymous>)
at en (index.js:1903:34)
at n.set [as value] (index.js:1965:25)
at mt (index.js:604:29)
at gt (index.js:666:9)
at St (index.js:978:17)
at Nt (index.js:861:13)
at St (index.js:983:13)
To Reproduce
Steps to reproduce the current behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what is expected to happen.
Screenshots
Additional context
Add any other context about the bug here.
The text was updated successfully, but these errors were encountered:
Component
The name of the component
import { FwPlatformTable, FwFilter } from '@freshworks/crayons-custom-objects/react';
"@freshworks/crayons-custom-objects": "^1.3.0-beta.15",
Describe the bug
A clear and concise description of the issue.
When we select the range of the Date, and add it to the filter, we end up getting the fromDate and toDate Object which is being used as parameters as well, however it is not being shown same as the value here.
The behaviour is being repeated in case of change of range as well.
Most of the time, we are observing this error
On change of date range in filter, this is being observed.
"01 Jun 2023 to 03 Jun 2023" is the value being passed which leads to an issue over this function.
// If ISO format, format it to display format and validate
let [fromDate, toDate] = (value === null || value === void 0 ? void 0 : value.split(TranslationController.t('datepicker.to'))) || [];
fromDate = fromDate === null || fromDate === void 0 ? void 0 : fromDate.trim();
toDate = toDate === null || toDate === void 0 ? void 0 : toDate.trim();
To Reproduce
Steps to reproduce the current behavior:
Expected behavior
A clear and concise description of what is expected to happen.
Screenshots
![Screenshot 2023-06-05 at 4 27 33 PM](https://private-user-images.githubusercontent.com/96039290/243334080-e1f8ef90-94d8-4300-a709-0da16748b39d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0OTE2MTIsIm5iZiI6MTcyMTQ5MTMxMiwicGF0aCI6Ii85NjAzOTI5MC8yNDMzMzQwODAtZTFmOGVmOTAtOTRkOC00MzAwLWE3MDktMGRhMTY3NDhiMzlkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDE2MDE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5YzExNmMyNDkwMWU4Nzk1OWY4NDkwNzkwM2I2MTBlZmRkN2FiMDYzOTE5NGQyNzUwYjA5NDVkNjRlNWE2YWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.DzQClp7lC7Di7E1W_i0v7a6TR7Nuj6OTSdgK5uuuYsg)
![Screenshot 2023-06-05 at 4 27 38 PM](https://private-user-images.githubusercontent.com/96039290/243334095-3fb295c1-3bbb-4629-bbff-648607aa92f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0OTE2MTIsIm5iZiI6MTcyMTQ5MTMxMiwicGF0aCI6Ii85NjAzOTI5MC8yNDMzMzQwOTUtM2ZiMjk1YzEtM2JiYi00NjI5LWJiZmYtNjQ4NjA3YWE5MmY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDE2MDE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThkYmFmODEzNjUxZjlhNmE5NDY5YzM3ZGE5NTI0ZWRlYjdjMDhiYzI4NGY2ZTU0YzI0Y2Q4NTI3MjUzNGM3ZDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.n830nU0m5j6-AaDKqiySJQeOnM2ZMCcMRFJiA2hzTJs)
![Screenshot 2023-06-05 at 4 27 51 PM](https://private-user-images.githubusercontent.com/96039290/243334102-702b4b39-e189-411b-8d7a-bd4f43b9bf08.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0OTE2MTIsIm5iZiI6MTcyMTQ5MTMxMiwicGF0aCI6Ii85NjAzOTI5MC8yNDMzMzQxMDItNzAyYjRiMzktZTE4OS00MTFiLThkN2EtYmQ0ZjQzYjliZjA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDE2MDE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmNTYyYWVhYmI3N2M0MmY3ODg4OGEyZDUwYzY1NzFmMGQzZWU3NDlhYjZiYmY3OGI5MDc5MmUyNjU1ZjM4NTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Rtb9jj3SFu3dDnB0yLqACv237oJpnr4MMmJ8-hbG6so)
![Screenshot 2023-06-05 at 4 29 16 PM](https://private-user-images.githubusercontent.com/96039290/243334108-452fa0e3-822c-49be-831d-bb20105b4baa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0OTE2MTIsIm5iZiI6MTcyMTQ5MTMxMiwicGF0aCI6Ii85NjAzOTI5MC8yNDMzMzQxMDgtNDUyZmEwZTMtODIyYy00OWJlLTgzMWQtYmIyMDEwNWI0YmFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDE2MDE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZmOGYzODc4Y2RmOTg0NTcyYjVhNGI1NDQ1YjdkMzg5OTQ0NGIwYmRlNjYxNDg2MDNmMGNiOWYwNWYwMGQ3NjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ulLgYFiTyOBLhkf031HOi-j6XzlZz2nFJhAtHwJAYJ4)
Additional context
Add any other context about the bug here.
The text was updated successfully, but these errors were encountered: