code icon indicating copy to clipboard operation
code copied to clipboard

Select icon occurce invalid type

Open denisJaved opened this issue 1 year ago • 0 comments

Please confirm the following.

  • [X] I checked the existing issues for duplicate problems
  • [X] I have tried resolving the issue using the support portal
  • [X] I have ensured my Modrinth App installation is up to date

What version of the Modrinth App are you using?

v0.8.4

What operating systems are you seeing the problem on?

Windows

Describe the bug

Selection icon for instance(profile/modpack) occure

invalid args `iconPath` for command `profile_edit_icon`: invalid type: map, expected a borrowed path

image Icon squere in options tab will change to blank placeholder image, icon in instance-card won't change

Steps to reproduce

  1. Open any profile
  2. Open options tab
  3. In Instance section click Select icon
  4. Select any icon
  5. Look at error apear in right bottom corner

Expected behavior

Icon would change.

Additional context

Stacktrace shows so error happends here

function jie() {
    "console"in dt && U0.forEach(function(e) {
        e in dt.console && un(dt.console, e, function(t) {
            return od[e] = t,
            function(...n) {
                nr("console", {
                    args: n,
                    level: e
                });
                const i = od[e];
                i && i.apply(dt.console, n)
            }
        })
    })
}

or more exactly in i.apply(dt.console, n)

Also there is a chance so that happens because file path contains non-ascii letters (in my case).

denisJaved avatar Sep 23 '24 09:09 denisJaved