swoop-common 2.1.26 → 2.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DTOComponentRead } from '../../api/generated/core/exports';
|
|
3
3
|
interface ComponentPickerExports {
|
|
4
|
-
get: (parentIds
|
|
4
|
+
get: (parentIds?: Array<string>) => Promise<DTOComponentRead>;
|
|
5
5
|
}
|
|
6
6
|
interface Props {
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -25,6 +25,7 @@ export const ComponentPickerProvider = ({ children }) => {
|
|
|
25
25
|
setOpen(true);
|
|
26
26
|
return new Promise((res, rej) => {
|
|
27
27
|
setParentIds(parentIds);
|
|
28
|
+
console.log("GOT DA PARENTS", parentIds);
|
|
28
29
|
// In case of old refs being called (so i dont need to explicitly remove them)
|
|
29
30
|
let done = false;
|
|
30
31
|
changeProp.current = (value) => {
|