Skip to content

Commit

Permalink
fix _/- errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem committed Feb 8, 2025
1 parent 786182a commit 2672584
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const load = (async ({ fetch, params }) => {
const tables: Record<string, any> = {};

await Promise.all(
['applied-controls', 'evidences', 'security_exceptions'].map(async (key) => {
['applied-controls', 'evidences', 'security-exceptions'].map(async (key) => {
const keyEndpoint = `${BASE_API_URL}/${key}/?requirement_assessments=${params.id}`;
const response = await fetch(keyEndpoint);

Expand Down Expand Up @@ -192,11 +192,11 @@ export const load = (async ({ fetch, params }) => {
}
evidenceModel.foreignKeys = evidenceForeignKeys;

const securityExceptionModel = getModelInfo('security_exceptions');
const securityExceptionCreateSchema = modelSchema('security_exceptions');
const securityExceptionModel = getModelInfo('security-exceptions');
const securityExceptionCreateSchema = modelSchema('security-exceptions');
const securityExceptionCreateForm = await superValidate(
{ requirement_assessments: [params.id], folder: requirementAssessment.folder.id },
zod(exceptionCreateSchema),
zod(securityExceptionCreateSchema),
{ errors: false }
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
field="security_exceptions"
/>
<ModelTable
source={$page.data.tables['security_exceptions']}
source={$page.data.tables['security-exceptions']}
hideFilters={true}
URLModel="security-exceptions"
/>
Expand Down

0 comments on commit 2672584

Please sign in to comment.