Fixed masterFilter being present.
This commit is contained in:
parent
10a4b33620
commit
f2bdb973d1
@ -17,7 +17,7 @@ const ObjectTypeSelect = ({
|
||||
const options = objectModels
|
||||
.sort((a, b) => a.label.localeCompare(b.label))
|
||||
.filter((model) => {
|
||||
if (masterFilter == null) {
|
||||
if (masterFilter == null || Object.keys(masterFilter).length == 0) {
|
||||
return true
|
||||
}
|
||||
return masterFilter.includes(model?.name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user