Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const onRenderLabel = (props) => {
);
};

const hiddenProfileTypes = ['pva-publish-composer'];

export const ProfileFormDialog: React.FC<ProfileFormDialogProps> = (props) => {
const { name, setName, targetType, setTargetType, onDismiss, targets, types, onNext, setType, current } = props;
const [errorMessage, setErrorMsg] = useState('');
Expand All @@ -71,7 +73,15 @@ export const ProfileFormDialog: React.FC<ProfileFormDialogProps> = (props) => {
};

const targetTypes = useMemo(() => {
return types.map((t) => ({ key: t.name, text: t.description }));
return (
types
// some profiles should not be able to be explicitly created
.filter((t) => {
const shouldBeHidden = hiddenProfileTypes.some((hiddenType) => hiddenType === t.name);
return !shouldBeHidden;
})
.map((t) => ({ key: t.name, text: t.description }))
);
}, [types]);

const updateType = useCallback(
Expand Down