]> gitweb.factorcode.org Git - factor.git/commitdiff
google.charts: check title/data before set-url-param
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 21 Sep 2023 03:13:42 +0000 (20:13 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 21 Sep 2023 03:13:42 +0000 (20:13 -0700)
extra/google/charts/charts.factor

index 086845e6713f531da37ae46ea6d194f1c94d322b..72830602fc87379d1996397fd19e4100e660f7f7 100644 (file)
@@ -82,8 +82,8 @@ PRIVATE>
                 "%sx%s" sprintf "chs" set-query-param
             ] [ 2drop ] if
         ]
-        [ title>> "chtt" set-query-param ]
-        [ data>> "t:" prepend "chd" set-query-param ]
+        [ title>> [ "chtt" set-query-param ] when* ]
+        [ data>> [ "t:" prepend "chd" set-query-param ] when* ]
         [ data-scale>> [ "chds" set-query-param ] when* ]
         [ labels>> "chl" set-query-param ]
         [