default service when private

This commit is contained in:
PhilReact 2024-12-17 08:02:14 +02:00
parent e113143f50
commit c50aafff86

View File

@ -33,7 +33,7 @@ export const Label = styled("label")(
export const PUBLISH_QDN_RESOURCE = ({ addNodeByPath, myName, mode, existingFile, updateByPath , groups, selectedGroup}) => {
const [requestData, setRequestData] = useState({
service: existingFile?.service || "DOCUMENT"
service: existingFile?.service || mode === 'private' ? "DOCUMENT_PRIVATE" : "DOCUMENT"
});
const { getRootProps, getInputProps } = useDropzone({