diff --git a/frontend/src/app/plugins/tokens.cljs b/frontend/src/app/plugins/tokens.cljs index d7de0689a7..268652e334 100644 --- a/frontend/src/app/plugins/tokens.cljs +++ b/frontend/src/app/plugins/tokens.cljs @@ -8,6 +8,7 @@ (:require [app.common.data.macros :as dm] [app.common.files.tokens :as cfo] + [app.common.json :as json] [app.common.schema :as sm] [app.common.types.token :as cto] [app.common.types.tokens-lib :as ctob] @@ -85,7 +86,7 @@ :get (fn [_] (let [token (u/locate-token file-id set-id id)] - (:value token))) + (json/->js (:value token)))) :schema (let [token (u/locate-token file-id set-id id)] (cfo/make-token-value-schema (:type token))) :set diff --git a/plugins/apps/poc-tokens-plugin/src/app/app.component.html b/plugins/apps/poc-tokens-plugin/src/app/app.component.html index 2f7e188259..9bb6fc8b9a 100644 --- a/plugins/apps/poc-tokens-plugin/src/app/app.component.html +++ b/plugins/apps/poc-tokens-plugin/src/app/app.component.html @@ -118,7 +118,11 @@ class="body-m panel-item token-item" (click)="applyToken(token.id)" > - + {{ token.name }}