Fix formatting issues in GenericNode and useFlowStore

This commit is contained in:
anovazzi1 2024-01-24 17:34:18 -03:00
commit bb42c773f2
2 changed files with 4 additions and 4 deletions

View file

@ -349,7 +349,7 @@ export default function GenericNode({
</div> </div>
)} )}
{showNode && ( {showNode && (
<div <div
className="round-button-div" className="round-button-div"
onClick={() => buildFlow(data.id)} onClick={() => buildFlow(data.id)}
> >

View file

@ -330,9 +330,9 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
}); });
}, },
buildFlow: async (nodeId?: string) => { buildFlow: async (nodeId?: string) => {
const currentFlow = useFlowsManagerStore((state) => state.currentFlow); const currentFlow = useFlowsManagerStore.getState().currentFlow;
const setSuccessData = useAlertStore((state) => state.setSuccessData); const setSuccessData = useAlertStore.getState().setSuccessData;
const setErrorData = useAlertStore((state) => state.setErrorData); const setErrorData = useAlertStore.getState().setErrorData;
function handleBuildUpdate(data: any) { function handleBuildUpdate(data: any) {
get().addDataToFlowPool(data.data[data.id], data.id); get().addDataToFlowPool(data.data[data.id], data.id);
} }