Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Import as draft when content type is draft and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
EdisonPeM committed Jun 6, 2021
1 parent 74c82b3 commit 0559471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/containers/DataMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function DataMapper({ analysis, target, onImport }) {
const { kind, attributes, options } = target;

const isSingleType = kind === "singleType";
const [uploadAsDraft, setUploadAsDraft] = useState(false);
const [uploadAsDraft, setUploadAsDraft] = useState(options.draftAndPublish);

const filteredAttributes = useMemo(
() => Object.keys(attributes).filter(filterIgnoreFields),
Expand Down

0 comments on commit 0559471

Please sign in to comment.