Skip to content

Commit 60b9883

Browse files
committed
Add variable support for aliases
1 parent b3d9388 commit 60b9883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class JsonDataSource extends DataSourceApi<JsonApiQuery, JsonApiDataSourc
145145
const typedValues = parseValues(values, propertyType);
146146

147147
return {
148-
name: field.name || paths[paths.length - 1],
148+
name: replaceWithVars(field.name ?? '') || paths[paths.length - 1],
149149
type: propertyType,
150150
values: new ArrayVector(typedValues),
151151
config: {},

0 commit comments

Comments
 (0)