Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,12 @@ const AppWrapper = () => {
userSettingsNoFallback,
} = data

const appsModuleDelimiter = apiVersion >= 42 ? '/' : ':'
const startModules = (data.apps.modules || []).map((module) => ({
id:
module.defaultAction.substr(0, 3) === '../'
? module.name
: `app:${module.name}`,
: `apps${appsModuleDelimiter}${module.name}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now this is apps: (plural) or apps/ -- shouldn't it be app: (singular) for the < 42?

Maybe this approach:

    const appsModulePrefix= apiVersion >= 42 ? 'apps/' : 'app:'
    const startModules = (data.apps.modules || []).map((module) => ({
        id:
            module.defaultAction.substr(0, 3) === '../'
                ? module.name
                : appsModulePrefix + module.name,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the catch! for whatever reason, it worked with apps: in v41 when I tested, but I confirmed with Morten that it should yes be:

  • app: for v41 and prior
  • apps/ for v42 and later

displayName: module.displayName || module.name,
}))

Expand Down
Loading