Skip to content

Commit

Permalink
[#1050] Use last previous administration answer to get entity list
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Jun 27, 2024
1 parent 86cd59f commit 295c582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/form/fields/TypeCascade.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const TypeCascade = ({
return [];
}
const parentIDs =
cascadeParent === 'administrator.sqlite' ? prevAdmAnswer || [] : parentId || [0];
cascadeParent === 'administrator.sqlite' ? prevAdmAnswer?.slice(-1) || [] : parentId || [0];
const filterDs = dataSource
?.filter((ds) => {
if (cascadeParent) {
Expand Down

0 comments on commit 295c582

Please sign in to comment.