Skip to content

Commit

Permalink
Serialize applied controls pk in compliance assessment action plan
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Mar 6, 2025
1 parent 95ce693 commit 5a2c226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions backend/core/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ def get_requirement_assessments(self, obj):
class Meta:
model = AppliedControl
fields = [
"id",
"ref_id",
"name",
"description",
"folder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'requirements-assessments': 'matchingRequirements'
};
const AppliedControls: TableSource = {
const appliedControls: TableSource = {
head: appliedControlsHead,
body: [],
meta: []
Expand Down Expand Up @@ -65,11 +65,10 @@
<div class="">
<ModelTable
URLModel="applied-controls"
source={AppliedControls}
source={appliedControls}
search={true}
rowsPerPage={true}
orderBy={{ identifier: 'eta', direction: 'desc' }}
tags={false}
baseEndpoint="/compliance-assessments/{$page.params.id}/action-plan"
fields={[
'name',
Expand Down

0 comments on commit 5a2c226

Please sign in to comment.