feat(frontend): Small UI fixes (#1026)

This commit is contained in:
Faton Ramadani
2022-12-16 14:00:43 +01:00
committed by GitHub
parent 0e871ca843
commit ebca9f39ea
5 changed files with 35 additions and 37 deletions
@@ -61,14 +61,18 @@
let scriptCreationDrawer: Drawer | undefined = undefined
$: selectedScriptName = undefined as string | undefined
$: scriptsUsedByComponents = new Map<string, string[]>()
$: scriptsUsedByComponents = new Map<string, string>()
$: {
scriptsUsedByComponents.clear()
$app.grid
.filter((gridComponent) => gridComponent.data.type !== 'runnable')
.filter((gridComponent) => gridComponent)
.forEach((gridComponent) => {
if (gridComponent.data.componentInput.runnable !== undefined) {
if (
gridComponent.data?.componentInput?.type === 'runnable' &&
gridComponent.data.componentInput.runnable !== undefined &&
gridComponent.data.componentInput.runnable.type === 'runnableByName'
) {
scriptsUsedByComponents.set(
gridComponent.data.componentInput.runnable.inlineScriptName,
gridComponent.data.id