Skip to content

Commit

Permalink
restore stream conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
DejayJD committed Apr 9, 2024
1 parent 80d5ad3 commit f1df4e3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ type AccessAndSaleFieldProps = {
}

export const AccessAndSaleField = (props: AccessAndSaleFieldProps) => {
const { isUpload = false, isAlbum, forceOpen, setForceOpen } = props
const { isUpload = false, isAlbum = false, forceOpen, setForceOpen } = props

const [{ value: index }] = useField('trackMetadatasIndex')
const [{ value: trackLength }] = useIndexedField<number>(
Expand Down Expand Up @@ -331,7 +331,7 @@ export const AccessAndSaleField = (props: AccessAndSaleFieldProps) => {
const initialValues = {}
set(initialValues, IS_UNLISTED, isUnlisted)
set(initialValues, IS_STREAM_GATED, isStreamGated)
set(initialValues, STREAM_CONDITIONS, savedStreamConditions)
set(initialValues, STREAM_CONDITIONS, tempStreamConditions)
set(initialValues, IS_DOWNLOAD_GATED, isDownloadGated)
set(initialValues, DOWNLOAD_CONDITIONS, downloadConditions)
set(initialValues, IS_DOWNLOADABLE, isDownloadable)
Expand Down Expand Up @@ -634,7 +634,6 @@ export const AccessAndSaleField = (props: AccessAndSaleFieldProps) => {
)}
menuFields={
<AccessAndSaleMenuFields
streamConditions={tempStreamConditions}
isRemix={isRemix}
isUpload={isUpload}
isAlbum={isAlbum}
Expand Down

0 comments on commit f1df4e3

Please sign in to comment.