# HG changeset patch # User Drew Perttula # Date 2017-06-10 10:26:54 # Node ID fb9e846463206f552ed95ec36948c91bbde891bc # Parent b48b0d9812cfcdbdca5cdd441ed5257b44800d40 show uri tail for label on timeline attra Ignore-this: ee78e01186a190314112efceeeb9f2a7 diff --git a/light9/web/timeline/timeline.coffee b/light9/web/timeline/timeline.coffee --- a/light9/web/timeline/timeline.coffee +++ b/light9/web/timeline/timeline.coffee @@ -674,7 +674,10 @@ Polymer #console.time('attrs update') U = (x) => @graph.Uri(x) @effect = @graph.uriValue(@uri, U(':effectClass')) - @effectLabel = @graph.stringValue(@effect, U('rdfs:label')) or (@effect.replace(/.*\//, '')) + try + @effectLabel = @graph.stringValue(@effect, U('rdfs:label')) + catch + @effectLabel = @effect.replace(/.*\//, '') @noteLabel = @uri.replace(/.*\//, '') existingColorScaleSetting = null