Skip to content

Commit

Permalink
fix: remove duplicated UpdateParams for aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Sep 30, 2024
1 parent 79f9aed commit 4928220
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/react-app/components/Playlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function PlaylistUI({ playlist }: { playlist: Playlist }) {
parameter="aspect"
min={defaults.ASPECT.min}
max={defaults.ASPECT.max}
defaultValue={defaults.ASPECT.defaultValue}
defaultValue={item.hologram.settings.aspect ?? defaults.ASPECT.defaultValue}
numberType={defaults.ASPECT.type}
/>
<UpdateParams
Expand Down Expand Up @@ -98,14 +98,6 @@ export function PlaylistUI({ playlist }: { playlist: Playlist }) {
defaultValue={defaults.FILTER_MODE.defaultValue}
numberType={defaults.FILTER_MODE.type}
/>
<UpdateParams
playlistName={playlist.name}
parameter="aspect"
min={defaults.ASPECT.min}
max={defaults.ASPECT.max}
defaultValue={item.hologram.settings.aspect ?? defaults.ASPECT.defaultValue}
numberType={defaults.ASPECT.type}
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 4928220

Please sign in to comment.