Skip to content

Commit

Permalink
chore: enable preview links by default
Browse files Browse the repository at this point in the history
  • Loading branch information
svedova committed Apr 29, 2024
1 parent ad15509 commit 7bcedff
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export default function TabConfigGeneral({
const navigate = useNavigate();
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
const [autoPublish, setAutoPublish] = useState(env.autoPublish || false);
const [previewLinks, setPreviewLinks] = useState(
env.build.previewLinks || false
);
const [previewLinks, setPreviewLinks] = useState(env.build.previewLinks);
const [autoDeploy, setAutoDeploy] = useState<AutoDeployValues>(
computeAutoDeployValue(env)
);
Expand Down Expand Up @@ -201,7 +199,9 @@ export default function TabConfigGeneral({
<Switch
name="build.previewLinks"
color="secondary"
checked={previewLinks}
checked={
typeof previewLinks === "boolean" ? previewLinks : true
}
onChange={e => {
setPreviewLinks(e.target.checked);
}}
Expand Down

0 comments on commit 7bcedff

Please sign in to comment.