Skip to content

Commit

Permalink
Update Loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
AnumQ committed Aug 4, 2024
1 parent 0c00646 commit 106bc74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/routes/hendelseslogg/LogSearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const LogSearchForm: React.FC<LogSearchFormProps> = ({ f, components, configs })
return <div>No components</div>;
}

console.log('configs aka ressurs');
console.log(configs);
return (
<f.Form method="post">
<VStack gap={'10'}>
Expand Down Expand Up @@ -61,7 +63,7 @@ const LogSearchForm: React.FC<LogSearchFormProps> = ({ f, components, configs })
</Select>

<Select
label="Configs"
label="Ressurs"
size="small"
onChange={(e) => setSelectedConfig(e.target.value)}
value={selectedConfig}
Expand Down
2 changes: 1 addition & 1 deletion app/routes/hendelseslogg/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const loader: LoaderFunction = async ({ request }) => {
const selectOrg = await getSelectedOrganization(request);
try {
const components = await ComponentApi.getOrganisationComponents(selectOrg);
const configs = await ComponentConfigApi.getComponentConfigs();
const configs = await ComponentConfigApi.getComponentConfigs(); // rename to something else - returns a list of components with associated classes, these classes are the configurations
return json({ components, configs });
} catch (error) {
console.error('Error fetching data:', error);
Expand Down

0 comments on commit 106bc74

Please sign in to comment.