Skip to content

Commit

Permalink
fix: fix not returning correct dependents from panel get plugins endp…
Browse files Browse the repository at this point in the history
…oint
  • Loading branch information
duruer committed Jun 1, 2024
1 parent 68ca5c1 commit ff463aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PanelGetPluginsAPI(
"version" to panoPluginDescriptor.version,
"status" to plugin.pluginState,
"dependencies" to panoPluginDescriptor.dependencies,
"dependents" to plugins.filter { it.descriptor.dependencies.any { it.pluginId == plugin.pluginId } }
"dependents" to plugins.filter { it.pluginState == PluginState.STARTED && it.descriptor.dependencies.any { it.pluginId == plugin.pluginId && !it.isOptional } }
.map { it.pluginId },
"license" to panoPluginDescriptor.license,
"error" to if (plugin.failedException == null) null else TextUtil.getStackTraceAsString(plugin.failedException),
Expand Down

0 comments on commit ff463aa

Please sign in to comment.