MCPcopy Create free account
hub / github.com/VienLi/CcView / formatData

Function formatData

src/components/Dialog/MoveDialog.tsx:19–27  ·  view source on GitHub ↗
(data: AppDataType)

Source from the content-addressed store, hash-verified

17 const { onClose, onSubmit, open, parent } = props;
18 const [appList, setAppList] = useState<ApplicationData[]>([]);
19 function formatData(data: AppDataType) {
20 const appData: ApplicationData[] = [];
21 data.forEach(item => {
22 if (item.type === 1) {
23 appData.push(item as ApplicationData);
24 }
25 });
26 setAppList(appData);
27 }
28 const handleClose = () => {
29 onClose();
30 };

Callers 1

MoveDialogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected