Skip to content

Commit b56e49b

Browse files
committed
Check if attachment type is global
1 parent c1aea35 commit b56e49b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

decompile.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,13 @@ func decompAttachmentString(attachmentString *string, attachments map[string]int
958958
hasShortcutInputVariables = true
959959
variableName = ShortcutInput
960960
}
961+
if attachment.Type != "Variable" {
962+
for name, global := range globals {
963+
if global.variableType == attachment.Type {
964+
variableName = name
965+
}
966+
}
967+
}
961968

962969
if len(attachment.Aggrandizements) != 0 {
963970
decompAggrandizements(&variableName, attachment.Aggrandizements)

0 commit comments

Comments
 (0)