projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'sdk/java-v2/' from commit '55f103e336ca9fb8bf1720d2ef4ee8dd4e221118'
[arvados.git]
/
apps
/
workbench
/
app
/
helpers
/
provenance_helper.rb
diff --git
a/apps/workbench/app/helpers/provenance_helper.rb
b/apps/workbench/app/helpers/provenance_helper.rb
index 0b839754261507d6368f525b87570d7797dddafa..9b4d265dfa3a78df33f550f6309603b45dcc64e8 100644
(file)
--- a/
apps/workbench/app/helpers/provenance_helper.rb
+++ b/
apps/workbench/app/helpers/provenance_helper.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
module ProvenanceHelper
class GenerateGraph
module ProvenanceHelper
class GenerateGraph
@@
-228,7
+232,11
@@
module ProvenanceHelper
# Search for any collection with this PDH
cols = @opts[:input_collections][pdh]
end
# Search for any collection with this PDH
cols = @opts[:input_collections][pdh]
end
- names = cols.collect{|x| x[:name]}.uniq
+ if cols
+ names = cols.collect{|x| x[:name]}.uniq
+ else
+ names = ['(collection not found)']
+ end
input_name = names.first
if names.length > 1
input_name += " + #{names.length - 1} more"
input_name = names.first
if names.length > 1
input_name += " + #{names.length - 1} more"