Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug6739 committed Apr 21, 2024
1 parent b9da8a4 commit b1388ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/pages/dashboard/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
</template>

<script setup lang="ts">
import { useDocumentsStore, useCategoriesStore } from '~/store';
const documents = computed(() => useDocumentsStore().getAll)
Expand All @@ -17,7 +16,7 @@ const headers = [
{ title: 'Actions' },
];
const rows = computed(() => documents.value.map((doc) => {
const val = {
return {
fields: [
{ content: doc.name, action: `/dashboard/doc/${doc.id}` },
{ content: categoriesStore.getById(doc.category || '')?.name || '', action: `/dashboard/category/${doc.category}` },
Expand All @@ -26,7 +25,6 @@ const rows = computed(() => documents.value.map((doc) => {
{ content: 'View document', action: `/dashboard/doc/${doc.id}` },
],
};
return val
}));
</script>
1 change: 1 addition & 0 deletions frontend/styles/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ input,
select,
textarea {
width: 100%;
padding: 12px 14px;
margin: 0;
border: 1px solid var(--border-color);
color: var(--font-color);
Expand Down

0 comments on commit b1388ea

Please sign in to comment.