Skip to content

Commit

Permalink
Skip selectFields with detail=true in list views
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed May 5, 2024
1 parent 73e3930 commit e9f1ec1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/routes/(app)/[model=urlmodel]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const load: PageServerLoad = async ({ params, fetch }) => {
const selectOptions: Record<string, any> = {};

for (const selectField of selectFields) {
if (selectField.detail) continue;
const url = `${BASE_API_URL}/${params.model}/${selectField.field}/`;
const response = await fetch(url);
if (response.ok) {
Expand Down

0 comments on commit e9f1ec1

Please sign in to comment.