AbsaOSS / AbsaOSS/enceladus

Mapping table conformance rule throws error when no Mapping table available

未关闭
#714 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug Menas priority: medium
主要语言
Scala
星标
33
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

## Describe the bug
When there is no mapping table to select, mapping table conformance rule throw error to console and does not update the Conformance Rule name in the selector.

## To Reproduce
Steps to reproduce the behavior OR commands run:
1. Have no mapping table
2. Select Mapping conformance rule under any dataset

## Expected behaviour
Don't try to display mapping tables if there are none.

## Screenshots
![Jul-29-2019 14-03-20](https://user-images.githubusercontent.com/17467768/62047029-b7d2b500-b209-11e9-8a9c-20f2fcea34fd.gif)

## Console
```js
Uncaught TypeError: Cannot read property '_id' of undefined
at ConformanceRuleDialog.beforeShowFragmentChanges (ConformanceRuleDialog.js:259)
at ConformanceRuleDialog.showFormFragment (ConformanceRuleDialog.js:311)
at ConformanceRuleDialog.onRuleSelect (ConformanceRuleDialog.js:179)
at f.b.fireEvent (EventProvider-dbg.js:228)
at f.d.fireEvent (Element-dbg.js:546)
at f.s.fireChange (Select-dbg.js:2144)
at f.s.onSelectionChange (Select-dbg.js:1325)
at f.b.fireEvent (EventProvider-dbg.js:228)
at f.d.fireEvent (Element-dbg.js:546)
at f.fireSelectionChange (ManagedObjectMetadata-dbg.js:782)
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。