diff --git a/backend/ebios_rm/models.py b/backend/ebios_rm/models.py index c4ad78bbd1..1aad3324fe 100644 --- a/backend/ebios_rm/models.py +++ b/backend/ebios_rm/models.py @@ -214,7 +214,6 @@ class Meta: verbose_name = _("RO/TO couple") verbose_name_plural = _("RO/TO couples") ordering = ["created_at"] - def save(self, *args, **kwargs): self.folder = self.ebios_rm_study.folder diff --git a/backend/ebios_rm/views.py b/backend/ebios_rm/views.py index 50fc7fd55c..d10b4be622 100644 --- a/backend/ebios_rm/views.py +++ b/backend/ebios_rm/views.py @@ -97,7 +97,7 @@ class OperationalScenarioViewSet(BaseModelViewSet): filterset_fields = [ "ebios_rm_study", ] - + @action(detail=True, name="Get risk matrix", url_path="risk-matrix") def risk_matrix(self, request, pk=None): attack_path = self.get_object() diff --git a/frontend/src/lib/utils/crud.ts b/frontend/src/lib/utils/crud.ts index 229c580870..24089b7f2d 100644 --- a/frontend/src/lib/utils/crud.ts +++ b/frontend/src/lib/utils/crud.ts @@ -660,9 +660,7 @@ export const URL_MODEL_MAP: ModelMap = { { field: 'threats', urlModel: 'threats' }, { field: 'attack_paths', urlModel: 'attack_paths' } ], - selectFields: [ - { field: 'likelihood' } - ] + selectFields: [{ field: 'likelihood' }] } }; diff --git a/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-four/operational-scenario/+page.server.ts b/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-four/operational-scenario/+page.server.ts index 1b8b1b7c2f..57f8f31e2f 100644 --- a/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-four/operational-scenario/+page.server.ts +++ b/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-four/operational-scenario/+page.server.ts @@ -54,7 +54,7 @@ export const load: PageServerLoad = async ({ params, fetch }) => { for (const selectField of selectFields) { if (selectField.detail) continue; - const url = `${BASE_API_URL}/ebios-rm/studies/${params.id}/${selectField.field}/` + const url = `${BASE_API_URL}/ebios-rm/studies/${params.id}/${selectField.field}/`; const response = await fetch(url); if (response.ok) { selectOptions[selectField.field] = await response.json().then((data) =>