Skip to content

Commit

Permalink
Merge pull request #1539 from NicoPennec/fix/resolution
Browse files Browse the repository at this point in the history
Fix the Create Shots modal
  • Loading branch information
frankrousseau authored Sep 23, 2024
2 parents a9d01c7 + 53b595b commit c18c573
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
7 changes: 0 additions & 7 deletions src/store/api/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ export default {
if (asset.source_id !== 'null') {
data.episode_id = asset.source_id
}
if (asset.data.resolution) {
data.data.resolution = asset.data.resolution
}

const path =
`/api/data/projects/${asset.project_id}/asset-types/` +
`${asset.entity_type_id}/assets/new`
Expand All @@ -72,9 +68,6 @@ export default {
if (asset.source_id === 'null' || asset.source_id) {
data.source_id = asset.source_id
}
if (asset.data.resolution) {
data.data.resolution = asset.data.resolution
}
return client.pput(`/api/data/entities/${asset.id}`, data)
},

Expand Down
10 changes: 2 additions & 8 deletions src/store/api/edits.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ export default {
const data = {
name: edit.name,
description: edit.description,
data: {}
}
if (edit.data.resolution) {
data.data.resolution = edit.resolution
data: edit.data
}
if (edit.parent_id !== 'null') {
data.episode_id = edit.parent_id
Expand All @@ -44,10 +41,7 @@ export default {
const data = {
name: edit.name,
description: edit.description,
data: edit.data || {}
}
if (edit.data.resolution) {
data.data.resolution = edit.data.resolution
data: edit.data
}
if (edit.parent_id === 'null' || edit.parent_id) {
data.parent_id = edit.parent_id
Expand Down
12 changes: 0 additions & 12 deletions src/store/api/shots.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ export default {
description: sequence.description,
data: sequence.data
}
if (sequence.data.resolution) {
data.data.resolution = sequence.data.resolution
}
const path = `/api/data/projects/${sequence.project_id}/sequences`
return client.ppost(path, data)
},
Expand All @@ -76,9 +73,6 @@ export default {
status: episode.status || 'running',
data: episode.data || {}
}
if (episode.data.resolution) {
data.data.resolution = episode.data.resolution
}
const path = `/api/data/projects/${episode.project_id}/episodes`
return client.ppost(path, data)
},
Expand Down Expand Up @@ -125,9 +119,6 @@ export default {
description: sequence.description,
data: sequence.data
}
if (sequence.data.resolution) {
data.data.resolution = sequence.data.resolution
}
return client.pput(`/api/data/entities/${sequence.id}`, data)
},

Expand All @@ -138,9 +129,6 @@ export default {
status: episode.status,
data: episode.data
}
if (episode.data.resolution) {
data.data.resolution = episode.data.resolution
}
if (episode.is_casting_standby !== undefined) {
data.is_casting_standby = Boolean(episode.is_casting_standby)
}
Expand Down

0 comments on commit c18c573

Please sign in to comment.