Skip to content

Commit

Permalink
keep profile name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pompurin404 committed Aug 6, 2024
1 parent a7f6d61 commit 841453b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/config/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 841453b

Please sign in to comment.