fixing video thumb position intialization

This commit is contained in:
Roland Osborne 2022-05-17 09:28:06 -07:00
parent bda3eb609a
commit 226b95ddb4
2 changed files with 4 additions and 3 deletions

View File

@ -49,15 +49,15 @@ export function useAddTopic() {
const actions = {
addImage: (image) => {
let url = URL.createObjectURL(image);
addAsset({ image, url, position: 0 })
addAsset({ image, url })
},
addVideo: (video) => {
let url = URL.createObjectURL(video);
addAsset({ video, url, label: '' })
addAsset({ video, url, position: 0 })
},
addAudio: (audio) => {
let url = URL.createObjectURL(audio);
addAsset({ audio, url })
addAsset({ audio, url, label: '' })
},
setLabel: (index, label) => {
updateAsset(index, { label });

View File

@ -8,5 +8,6 @@ export const ChannelsWrapper = styled.div`
overflow: auto;
text-align: center;
border-radius: 2px;
padding-top: 16px;
`;