@@ -235,6 +235,13 @@ const { data: existingSession } = useAdminSessionQuery(sessionId, {
|
||||
enabled: () => !!sessionId.value,
|
||||
})
|
||||
|
||||
const collectionToContentType = (collectionName) => {
|
||||
if (collectionName === 'video') return 'video'
|
||||
if (collectionName === 'voice') return 'voice'
|
||||
if (collectionName === 'pdf') return 'text'
|
||||
return ''
|
||||
}
|
||||
|
||||
watch(
|
||||
existingSession,
|
||||
(session) => {
|
||||
@@ -277,13 +284,6 @@ const purposeForContentType = (contentType) => {
|
||||
return 'pdf'
|
||||
}
|
||||
|
||||
const collectionToContentType = (collectionName) => {
|
||||
if (collectionName === 'videos') return 'video'
|
||||
if (collectionName === 'voices') return 'voice'
|
||||
if (collectionName === 'pdf') return 'text'
|
||||
return ''
|
||||
}
|
||||
|
||||
const onContentSelect = async (files) => {
|
||||
const file = files?.[0]
|
||||
if (!file) return
|
||||
|
||||
Reference in New Issue
Block a user