Skip to content

Commit

Permalink
BUGFIX/HCMPRE-1584: Disable planSearch for popInbox and CSS for dropd…
Browse files Browse the repository at this point in the history
…own (#2123)
  • Loading branch information
abishekTa-egov authored Jan 10, 2025
1 parent bff091f commit 4188c89
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const InboxFilterWrapper = (props) => {
}
},
config: {
enabled: true,
enabled: props?.isPlanInbox ? props?.isPlanInbox: false,
select: (data) => {
if (!data?.PlanFacility || !Array.isArray(data.PlanFacility)) return [];

Expand All @@ -126,7 +126,9 @@ const InboxFilterWrapper = (props) => {
}
};

const { isLoading: isPlanFacilityLoading,error:planFacilityerror, data: planFacility }=Digit.Hooks.useCustomAPIHook(planFacilitySearchConfig);
const { isLoading: isPlanFacilityLoading, error: planFacilityError, data: planFacility } = Digit.Hooks.useCustomAPIHook(planFacilitySearchConfig);



if(isPlanFacilityLoading){
return <Loader/>
Expand Down Expand Up @@ -172,6 +174,7 @@ const InboxFilterWrapper = (props) => {
select={(value) => handleDropdownChange("onRoadCondition", value)}
t={t}
disabled={false}
showToolTip={true}
/>
</LabelFieldPair>

Expand All @@ -184,6 +187,7 @@ const InboxFilterWrapper = (props) => {
select={(value) => handleDropdownChange("terrain", value)}
t={t}
disabled={false}
showToolTip={true}
/>
</LabelFieldPair>

Expand All @@ -196,6 +200,7 @@ const InboxFilterWrapper = (props) => {
select={(value) => handleDropdownChange("facilityId", value)}
t={t}
disabled={false}
showToolTip={true}
/>
</LabelFieldPair>

Expand Down Expand Up @@ -224,6 +229,7 @@ const InboxFilterWrapper = (props) => {
select={(value) => handleDropdownChange(`securityQ${questionNumber}`, value)}
t={t}
disabled={false}
showToolTip={true}
/>
</LabelFieldPair>
);
Expand Down

0 comments on commit 4188c89

Please sign in to comment.