From c50aafff86efe35e4a321177622dce66fff1abcc Mon Sep 17 00:00:00 2001 From: PhilReact Date: Tue, 17 Dec 2024 08:02:14 +0200 Subject: [PATCH] default service when private --- src/actions/PUBLISH_QDN_RESOURCE.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/PUBLISH_QDN_RESOURCE.jsx b/src/actions/PUBLISH_QDN_RESOURCE.jsx index c865031..8d529b3 100644 --- a/src/actions/PUBLISH_QDN_RESOURCE.jsx +++ b/src/actions/PUBLISH_QDN_RESOURCE.jsx @@ -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({