Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Create Templated Page from Query does not work without a link column #169

Description

@archiewood

Steps To Reproduce

  1. create a query categories.sql
SELECT
    category,
    sum(sales) as total_sales
from orders
group by category
  1. run the command, choosing the column category as the identifier
  2. run code

Environment

  • VSCode Extension version (Check in VSCode Marketplace): 1.3.39

Expected Behavior

a working datatable to create the links is created

---
title: Categories
sources:
   - categories: categories.sql
---

Click on an item to see more detail

<DataTable data={categories} showLinkCol=true link=category/>

Actual Behaviour

generated code

---
title: Categories
sources:
   - categories: categories.sql
---

Click on an item to see more detail

<DataTable data={categories} link=link/>

There is no link column in the query so this does not work as expected

Workarounds

include a link column in the query

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreviewRequires additional testing and review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions