Skip to content

Commit

Permalink
[#464] Change initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Jan 30, 2025
1 parent 50be3f2 commit f24a82e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const PermissionForm = ({objectFields, tokenChoices, objecttypeChoices, modeChoi
}

const [fields, setFields] = useState( JSON.parse(values["fields"]) || {} )
const [dataFieldChoices, setDataFieldChoices] = useState(dataFieldChoices);
const [dataFieldChoices, setDataFieldChoices] = useState({});

const fetchObjecttypeVersions = (objecttype_id) => {
fetch(`/admin/core/objecttype/${objecttype_id}/_versions/`, {
Expand Down

0 comments on commit f24a82e

Please sign in to comment.