Skip to content

Commit

Permalink
[breakdown] Fix asset loading for asset types and episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
frankrousseau committed Sep 30, 2024
1 parent 9ac7a21 commit f5c47f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/pages/Breakdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ export default {
} else {
this.setCastingEpisode(null)
}
this.loadAssets({ all: true, withTasks: false }).then(() => {
this.loadAssets({ all: true, withTasks: true }).then(() => {
this.isLoading = false
this.displayMoreAssets()
this.setCastingAssetTypes()
Expand Down
6 changes: 3 additions & 3 deletions src/store/modules/breakdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const mutations = {

[CASTING_SET_FOR_EPISODES](state, episodes) {
const casting = {}
const castingByType = []
const castingByType = {}
state.castingEpisodes = episodes
episodes.forEach(episode => {
casting[episode.id] = []
Expand All @@ -350,7 +350,7 @@ const mutations = {

[CASTING_SET_SHOTS](state, shots) {
const casting = {}
const castingByType = []
const castingByType = {}
state.castingSequenceShots = shots
shots.forEach(shot => {
casting[shot.id] = []
Expand All @@ -362,7 +362,7 @@ const mutations = {

[CASTING_SET_ASSETS](state, assets) {
const casting = {}
const castingByType = []
const castingByType = {}
state.castingAssetTypeAssets = assets
assets.forEach(asset => {
casting[asset.id] = []
Expand Down

0 comments on commit f5c47f6

Please sign in to comment.