Skip to content

Commit

Permalink
fix: remove unnecessary print and useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Sep 11, 2024
1 parent 4c1abc4 commit 687f620
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 6 additions & 7 deletions backend/benefit/applications/api/v1/serializers/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,9 +1398,9 @@ def _update_de_minimis_aid(self, application, de_minimis_data):

for idx, aid_item in enumerate(serializer.validated_data):
aid_item["application_id"] = application.pk
aid_item[
"ordering"
] = idx # use the ordering defined in the JSON sent by the client
aid_item["ordering"] = (
idx # use the ordering defined in the JSON sent by the client
)

de_minimis_list = serializer.save()
for de_minimis in de_minimis_list:
Expand Down Expand Up @@ -1809,9 +1809,9 @@ def _common_ordered_nested_update(self, application, serializer):
)
for idx, nested_object in enumerate(serializer.validated_data):
nested_object["application_id"] = application.pk
nested_object[
"ordering"
] = idx # use the ordering defined in the JSON sent by the client
nested_object["ordering"] = (
idx # use the ordering defined in the JSON sent by the client
)
serializer.save()
if hasattr(application, "calculation"):
call_now_or_later(
Expand Down Expand Up @@ -1946,7 +1946,6 @@ class Meta:
batch = serializers.SerializerMethodField("get_batch_status")

def get_batch_status(self, obj):
print(obj.batch)
return {"status": getattr(obj.batch, "status", None)}

ahjo_case_id = serializers.CharField()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ const useApplicationsArchive = (
decisionRange
);

useEffect(() => {
getSearchResults('');
}, [getSearchResults]);

const shouldHideList =
Boolean(error) || (!isSearchLoading && searchResults?.matches.length === 0);

Expand Down

0 comments on commit 687f620

Please sign in to comment.