fixed lint format

This commit is contained in:
Mason Coloretti 2024-07-14 18:51:18 -06:00
parent 49d9d194a7
commit cad43c82a0

View file

@ -29,6 +29,18 @@ export default {
error: null, error: null,
}; };
}, },
computed: {
filteredReports() {
return this.incidentReports
.slice() // Create a copy to avoid mutating the original array
.sort(
(a, b) =>
new Date(b._createdDate) - new Date(a._createdDate),
)
.slice(-25); // Get the last 25 sorted reports
},
},
mounted() { mounted() {
this.fetchIncidentReports(); this.fetchIncidentReports();
}, },
@ -55,17 +67,6 @@ export default {
}); });
}, },
}, },
computed: {
filteredReports() {
return this.incidentReports
.slice() // Create a copy to avoid mutating the original array
.sort(
(a, b) =>
new Date(b._createdDate) - new Date(a._createdDate),
)
.slice(-25); // Get the last 25 sorted reports
},
},
}; };
</script> </script>
<style> <style>