Skip to content

Commit 3a4e268

Browse files
committed
chore: url v4 migration
1 parent 325abfc commit 3a4e268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function migrateV3Config(config: V3Config): SankeyChartConfig {
111111
add_entities: entityConf.add_entities,
112112
subtract_entities: entityConf.subtract_entities,
113113
icon: entityConf.icon,
114-
tap_action: entityConf.tap_action,
114+
tap_action: entityConf.tap_action || (entityConf.url ? { action: 'url' as const, url_path: entityConf.url } : undefined),
115115
double_tap_action: entityConf.double_tap_action,
116116
hold_action: entityConf.hold_action,
117117
children_sum: entityConf.children_sum,

0 commit comments

Comments
 (0)