Skip to content

Commit

Permalink
Fixed navigation from Dashboard, transactions without a tag -> transa…
Browse files Browse the repository at this point in the history
…ctions list
  • Loading branch information
cioraneanu committed May 21, 2024
1 parent 12c6cf3 commit e917c04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,15 @@ const barsList = computed(() => {
return bars.sort((a, b) => b.percent - a.percent).slice(0, 15)
})
const onClick = async (bar) => {
const onClick = async ({tag_id, tag}) => {
const startDate = DateUtils.dateToString(dataStore.dashboardDateStart)
const endDate = DateUtils.dateToString(dataStore.dashboardDateEnd)
let tagId = get(bar, 'tag_id')
if (!tagId) {
if (!tag) {
await navigateTo(`${RouteConstants.ROUTE_TRANSACTION_LIST}?without_tag=true&date_start=${startDate}&date_end=${endDate}`)
return
}
await navigateTo(`${RouteConstants.ROUTE_TRANSACTION_LIST}?tag_id=${bar.tag_id}&date_start=${startDate}&date_end=${endDate}`)
await navigateTo(`${RouteConstants.ROUTE_TRANSACTION_LIST}?tag_id=${tag_id}&date_start=${startDate}&date_end=${endDate}`)
}
</script>
1 change: 0 additions & 1 deletion front/models/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default class Icon extends BaseModel {
}

static isTypeTabler(iconName) {
console.log('xxx', {iconName})
return iconName?.startsWith('Icon')
}
}

0 comments on commit e917c04

Please sign in to comment.