Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien LeBlanc committed Oct 10, 2023
1 parent 220889c commit 2095964
Show file tree
Hide file tree
Showing 5 changed files with 289 additions and 317 deletions.
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default defineNuxtConfig({
'@nuxtjs/color-mode',
'@nuxtjs/google-fonts',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@vueuse/nuxt',
'nuxt-vuefire',
],
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@nuxtjs/google-fonts": "^3.0.0-1",
"@nuxtjs/i18n": "^8.0.0-beta.9",
"@nuxtjs/tailwindcss": "^6.2.0",
"@pinia-plugin-persistedstate/nuxt": "^1.0.0",
"@types/inputmask": "^5.0.3",
"@types/moment-duration-format": "^2.2.3",
"@vueuse/components": "^10.3.0",
Expand Down
6 changes: 3 additions & 3 deletions src/components/TimeEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const emit = defineEmits<{
(e: 'add'): void;
}>();
const model = ref(JSON.parse(JSON.stringify(props.entry)));
const model = ref(Object.create(null, Object.getOwnPropertyDescriptors(props.entry)));
const placeholder = ref('00:00:00');
const computedDate = computed(() => {
Expand Down Expand Up @@ -379,7 +379,7 @@ function start() {
function stop() {
model.value.end_time = model.value.end_time || $moment().format('HH:mm');
model.value.is_live_clocking = false;
updateEntry(model.value, props.entry);
updateEntry(model.value);
}
function add() {
Expand All @@ -391,7 +391,7 @@ function add() {
function edit() {
model.value.is_creating = false;
model.value.is_editing = false;
updateEntry(model.value, props.entry);
updateEntry(model.value);
}
function cancel() {
Expand Down
Loading

0 comments on commit 2095964

Please sign in to comment.