fix: show only v3 bases for converting to managed app

This commit is contained in:
Ramesh Mane
2026-01-27 11:47:14 +00:00
parent 02eafb2ec2
commit 86979b3188

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { FormBuilderValidatorType } from 'nocodb-sdk'
import { BaseVersion, FormBuilderValidatorType } from 'nocodb-sdk'
import { FORM_BUILDER_NON_CATEGORIZED, FormBuilderInputType } from '#imports'
const props = defineProps<{
@@ -149,7 +149,9 @@ const { formState, isLoading, submit } = useProvideFormBuilderHelper({
equal: 'existing',
},
defaultValue: undefined,
filterOption: (base) => base && !base?.managed_app_id,
filterOption: (base) => base && base.version === BaseVersion.V3 && !base.managed_app_id,
helpText: 'Only V3 bases can be published as managed apps',
showHintAsTooltip: true,
},
{
type: FormBuilderInputType.Input,