Skip to content

Commit

Permalink
fix: fix export settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Feb 1, 2024
1 parent ced226d commit 8a3d906
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/APISettingTree/item_dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,16 @@ export default defineComponent({
const apiSettings: APISetting[] = [];
const folders: APIFolder[] = [];
const name = apiFolderStore.findByID(id).name;
const folderIdList:string[] = [];
const appendChildren = (folderId: string) => {
if (folderIdList.includes(folderId)) {
return;
}
folderIdList.push(folderId);
const folder = apiFolderStore.findByID(folderId);
if (!folder) {
return;
}
folders.push(folder);
folder.children.split(",").forEach((child) => {
const apiSetting = apiSettingStore.findByID(child);
if (apiSetting) {
Expand Down

0 comments on commit 8a3d906

Please sign in to comment.