AltimateAI / AltimateAI/vscode-dbt-power-user

"Children models" block empty when model has exposures

Open
#802 0 comments 0 reactions 1 assignee Claimed by @svipulrao98 View on GitHub
bug
Dominant language
JavaScript
Stars
585
Forks
121
Avg merge
5d 39m
Merged PRs (30d)
4

Description

### Expected behavior

When a model is opened in VS Code and this model is linked to the exposures, the block "Children Models" shows a list of models (possibly also exposures?)

### Actual behavior

When a model is opened in VS Code and it is linked to the exposure, the block "Children Models" is empty and an error "Cannot read properties of undefined (reading '0')"

### Steps To Reproduce

1. Open dbt repository in VS Code
2. Open model that has exposures in a new tab
3. Open the extension "dbt Power User" in the sidebar
4. extend the tab "children models", if it is hidden

### Log output/Screenshots

![CleanShot 2024-01-03 at 12 47 17@2x](https://github.com/AltimateAI/vscode-dbt-power-user/assets/79406976/23d29cae-2779-45e6-a609-558483cc5d35)

![CleanShot 2024-01-03 at 12 46 26@2x](https://github.com/AltimateAI/vscode-dbt-power-user/assets/79406976/d748aa4c-43a1-4bc2-a121-0aeeb0366eb4)

![CleanShot 2024-01-03 at 12 51 52@2x](https://github.com/AltimateAI/vscode-dbt-power-user/assets/79406976/5b357da2-3a40-4366-bb85-68b8f50c148c)

### Operating System

Mac OS

### dbt version

1.7.4

### dbt Adapter

bigquery

### dbt Power User version

0.28.4

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.