Fixed flows not being able to upload
This commit is contained in:
parent
a59399bac6
commit
55dc19d1ab
1 changed files with 2 additions and 2 deletions
|
|
@ -308,7 +308,7 @@ export function FlowsProvider({ children }: { children: ReactNode }) {
|
||||||
let text = await file.text();
|
let text = await file.text();
|
||||||
let fileData = JSON.parse(text);
|
let fileData = JSON.parse(text);
|
||||||
if (
|
if (
|
||||||
(fileData.is_component === undefined && isComponent === false) ||
|
(!fileData.is_component && isComponent === true) ||
|
||||||
(fileData.is_component !== undefined &&
|
(fileData.is_component !== undefined &&
|
||||||
fileData.is_component !== isComponent)
|
fileData.is_component !== isComponent)
|
||||||
) {
|
) {
|
||||||
|
|
@ -340,7 +340,7 @@ export function FlowsProvider({ children }: { children: ReactNode }) {
|
||||||
console.log(isComponent, fileData);
|
console.log(isComponent, fileData);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(fileData.is_component === undefined && isComponent === false) ||
|
(!fileData.is_component && isComponent === true) ||
|
||||||
(fileData.is_component !== undefined &&
|
(fileData.is_component !== undefined &&
|
||||||
fileData.is_component !== isComponent)
|
fileData.is_component !== isComponent)
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue