fix no options in table
This commit is contained in:
parent
9c07f822b2
commit
f6115c6859
@ -12,7 +12,10 @@ export const useOptions = elementName => {
|
||||
|
||||
export const useTableOptions = ({ tableName, rowIndex, propName }) => {
|
||||
const { calculationStore } = useStores();
|
||||
const options = calculationStore.tables[tableName].options[propName] || [];
|
||||
const options =
|
||||
(calculationStore.tables[tableName].options &&
|
||||
calculationStore.tables[tableName].options[propName]) ||
|
||||
[];
|
||||
const filter =
|
||||
calculationStore.tables[tableName].rows[rowIndex][propName].filter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user