Skip to content

Commit

Permalink
refactor: changes in template context management in KDK (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Dec 3, 2024
1 parent e16b741 commit c3162f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/boot/kdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const kanoLib = {
}

// Inject a bearing value in lodash template evaluation context
TemplateContext.merge({ bearing: 0 })
TemplateContext.set('bearing', 0)
CanvasDrawContext.merge(kanoLib)

function updateThemeColors () {
Expand Down
2 changes: 1 addition & 1 deletion src/components/MapActivity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default {
},
setBearing(bearing) {
kMapMixins.map.baseMap.methods.setBearing.call(this, bearing)
TemplateContext.get().bearing = bearing
TemplateContext.set('bearing', bearing)
},
handleWidget (widget) {
// If window already open on another widget keep it
Expand Down

0 comments on commit c3162f1

Please sign in to comment.