Skip to content

Commit 2967134

Browse files
fix: correct parameter name for create function in profile helper (#4744)
Co-authored-by: Panyu <48863527+PanyuDev@users.noreply.github.com>
1 parent 386e6e5 commit 2967134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/app-frontend/src/helpers/profile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ import { install_to_existing_profile } from '@/helpers/pack.js'
1818
- icon is a path to an image file, which will be copied into the profile directory
1919
*/
2020

21-
export async function create(name, gameVersion, modloader, loaderVersion, iconPath, skipInstall) {
21+
export async function create(name, gameVersion, modloader, loaderVersion, icon, skipInstall) {
2222
//Trim string name to avoid "Unable to find directory"
2323
name = name.trim()
2424
return await invoke('plugin:profile-create|profile_create', {
2525
name,
2626
gameVersion,
2727
modloader,
2828
loaderVersion,
29-
iconPath,
29+
icon,
3030
skipInstall,
3131
})
3232
}

0 commit comments

Comments
 (0)