Skip to content

Commit

Permalink
removing console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekTa-egov committed Dec 30, 2024
1 parent f08b5b6 commit 34f5cdc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ const InboxFilterWrapper = (props) => {
// Apply filters when the user presses the primary action button
const handleApplyFilters = () => {
if (props.onApplyFilters) {
// debugger;
console.log("filt",filterValues);
props.onApplyFilters(filterValues); // Call the parent function with selected value
}
};
Expand All @@ -71,8 +69,6 @@ const InboxFilterWrapper = (props) => {
};

const handleDropdownChange = (key, value) => {
console.log("filter",value)
debugger
setFilterValues((prev)=>({
...prev,
[key]:value?.name
Expand All @@ -82,8 +78,6 @@ const InboxFilterWrapper = (props) => {
// setonRoadCOndition(value?.code);
// }
};
console.log("filtervalue",filterValues);
console.log("state",state.villageRoadCondition);

return (
<FilterCard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ const PlanInbox = () => {
);
setActiveFilter(reorderedStatusCount);
const activeFilterKeys = Object.keys(reorderedStatusCount || {});
console.log("filter activeFIlter",activeFilterKeys);
if (selectedFilter.filterValue === null || selectedFilter.status=== undefined || selectedFilter.status === "" || !activeFilterKeys.includes(selectedFilter.status)) {
setSelectedFilter((prev) => ({
...prev, // Spread the previous state to retain other attributes
Expand Down Expand Up @@ -509,13 +508,7 @@ const PlanInbox = () => {
}
}, [selectedFilter.status]);

useEffect(()=>{
console.log("filter filteredValues",selectedFilter)
},[selectedFilter]);

const onFilter = (filterValue) => {
debugger;
print("filter1",filterValue);
setSelectedFilter((prev)=>(
{
...prev,
Expand All @@ -535,9 +528,7 @@ const PlanInbox = () => {
});
};

const clearFilters = () => {
debugger;

const clearFilters = () => {
setSelectedFilter((prev)=>(
{
status:Object.entries(activeFilter)?.[0]?.[0]
Expand Down

0 comments on commit 34f5cdc

Please sign in to comment.