Skip to content

Commit

Permalink
cleanup: properly default videoPosition to static on selection
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev committed Dec 28, 2024
1 parent 6e33e4a commit 7dfd104
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontends/dashboard/src/pages/dataset/PublicPageSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,9 @@ const PublicPageControls = () => {
value={extraParams.videoLink || ""}
onInput={(e) => {
setExtraParams("videoLink", e.currentTarget.value);
if (!extraParams.videoPosition) {
setExtraParams("videoPosition", "static");
}
}}
class="block w-full rounded border border-neutral-300 px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6"
/>
Expand Down

0 comments on commit 7dfd104

Please sign in to comment.