Skip to content

Commit

Permalink
Revert "fix: don't filter expired forms from list"
Browse files Browse the repository at this point in the history
This reverts commit 12ad0e4.
  • Loading branch information
Chartman123 committed Apr 14, 2024
1 parent 12ad0e4 commit 418e752
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Forms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,22 @@ export default {
* All own active forms
*/
ownedForms() {
const now = Date.now() / 1000
return this.forms
.filter((form) => form.state !== FormState.FormArchived)
.filter((form) => form.expires === 0 || form.expires >= now)
},
/**
* All active shared forms
*/
sharedForms() {
const now = Date.now() / 1000
return this.allSharedForms
.filter((form) => form.state !== FormState.FormArchived)
.filter((form) => form.expires === 0 || form.expires >= now)
},
/**
Expand Down

0 comments on commit 418e752

Please sign in to comment.