keep profile name

This commit is contained in:
pompurin404 2024-08-06 16:26:53 +08:00
parent cf3d4e023f
commit d85be8a298
No known key found for this signature in database

View File

@ -104,7 +104,7 @@ export async function createProfile(item: Partial<IProfileItem>): Promise<IProfi
const id = item.id || new Date().getTime().toString(16)
const newItem = {
id,
name: item.name || item.type === 'remote' ? 'Remote File' : 'Local File',
name: item.name || (item.type === 'remote' ? 'Remote File' : 'Local File'),
type: item.type || 'local',
url: item.url,
interval: item.interval || 0,