diff --git a/app/routes/komponenter.$id/SwaggerTable.tsx b/app/routes/komponenter.$id/SwaggerTable.tsx
index 96c27e6..f75f433 100644
--- a/app/routes/komponenter.$id/SwaggerTable.tsx
+++ b/app/routes/komponenter.$id/SwaggerTable.tsx
@@ -7,7 +7,7 @@ interface EndpointTableProps {
component: IComponent;
}
-const EndpointTable = ({ component }: EndpointTableProps) => {
+const SwaggerTable = ({ component }: EndpointTableProps) => {
return (
@@ -38,4 +38,4 @@ const EndpointTable = ({ component }: EndpointTableProps) => {
);
};
-export default EndpointTable;
+export default SwaggerTable;
diff --git a/app/routes/komponenter._index/ComponentsTable.tsx b/app/routes/komponenter._index/ComponentsTable.tsx
index b214fa4..5599d25 100644
--- a/app/routes/komponenter._index/ComponentsTable.tsx
+++ b/app/routes/komponenter._index/ComponentsTable.tsx
@@ -59,6 +59,8 @@ const ComponentsTable = ({
const value = e.target.value; // The value of the checkbox
const isChecked = e.target.checked; // Whether the checkbox is checked or unchecked
+ console.log('Toggled component:', value, 'Checked:', isChecked);
+
if (toggle) {
const formData = new FormData();
formData.append('componentName', value);
@@ -83,7 +85,10 @@ const ComponentsTable = ({
)}
- {capitalizeFirstLetter(groupName)}
+ {/* Hacky code.. quick fix that i personally hate... sorry to the next person! */}
+ {capitalizeFirstLetter(
+ groupName === 'okonomi' ? 'Økonomi' : groupName
+ )}
diff --git a/app/routes/komponenter._index/route.tsx b/app/routes/komponenter._index/route.tsx
index 319201b..9ecca62 100644
--- a/app/routes/komponenter._index/route.tsx
+++ b/app/routes/komponenter._index/route.tsx
@@ -49,6 +49,7 @@ export default function Index() {
items={components}
selectedItems={selectedComponents}
toggle={handleFormSubmit}
+ isManaged={false}
/>
>
);