Skip to content

Commit

Permalink
Fixed bug that disallowed creating a first note
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsun-dev committed Dec 14, 2023
1 parent 48e4257 commit 69506e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</template>

<script>
import { ref, defineComponent } from "vue";
import { ref, defineComponent, onMounted } from "vue";
import { useQuasar } from "quasar";
import { OWiCConnect } from "owic-app-service";
import NotePreview from "src/components/NotePreview.vue";
Expand Down Expand Up @@ -142,18 +142,18 @@ export default defineComponent({
selectedList.value = [];
};
async function asyncSetup() {
onMounted(async () => {
const response = await OWiCConnect.getData("notes");
notesList.value.push(...response);
updateColumns();
if (Symbol.iterator in Object(response)) {
notesList.value.push(...response);
updateColumns();
}
const checkLoggedIn = await OWiCConnect.getUser();
if (checkLoggedIn.errors.length == 0) {
loggedIn.value = true;
}
}
asyncSetup();
});
return {
selectMode,
Expand Down

0 comments on commit 69506e5

Please sign in to comment.