0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

change owner default to false

This commit is contained in:
Víctor Losada Hernández
2024-07-31 08:58:23 +02:00
parent 2a8e4b2a63
commit c92f30cfe0

View File

@@ -20,7 +20,7 @@ const VaultPage = (props) => {
const [title, setTitle] = useState(props.query.title || '');
//state author and owner
const [author, setAuthor] = useState(props.query.author || '');
const [owner, setOwner] = useState(props.query.owner !== 'false');
const [owner, setOwner] = useState(props.query.owner ? props.query.owner !== 'false' : false);
const [legacy, setLegacy] = useState(props.query.legacy !== 'false');
const [v3, setV3] = useState(props.query.v3 !== 'false');
const [count, setCount] = useState(props.query.count || 20);
@@ -142,6 +142,8 @@ const VaultPage = (props) => {
if (update) {
setTitle(title);
setAuthor(author);
setOwner(owner);
setCount(count);
setV3(v3);
setLegacy(legacy);