Fix formatting issues in GenericNode and useFlowStore
This commit is contained in:
parent
5f0cd43ec5
commit
bb42c773f2
2 changed files with 4 additions and 4 deletions
|
|
@ -349,7 +349,7 @@ export default function GenericNode({
|
|||
</div>
|
||||
)}
|
||||
{showNode && (
|
||||
<div
|
||||
<div
|
||||
className="round-button-div"
|
||||
onClick={() => buildFlow(data.id)}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -330,9 +330,9 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
|||
});
|
||||
},
|
||||
buildFlow: async (nodeId?: string) => {
|
||||
const currentFlow = useFlowsManagerStore((state) => state.currentFlow);
|
||||
const setSuccessData = useAlertStore((state) => state.setSuccessData);
|
||||
const setErrorData = useAlertStore((state) => state.setErrorData);
|
||||
const currentFlow = useFlowsManagerStore.getState().currentFlow;
|
||||
const setSuccessData = useAlertStore.getState().setSuccessData;
|
||||
const setErrorData = useAlertStore.getState().setErrorData;
|
||||
function handleBuildUpdate(data: any) {
|
||||
get().addDataToFlowPool(data.data[data.id], data.id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue