Skip to content

Commit

Permalink
Fix conditional hook
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Aug 5, 2024
1 parent d85e54c commit 41b9e39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/app/src/components/nodes/AudioNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export const AudioNodeBody: FC<AudioNodeBodyProps> = ({ node }) => {
return <div>Audio data from input</div>;
}

return <AudioNodeHasDataInput node={node} />;
};

export const AudioNodeHasDataInput: FC<AudioNodeBodyProps> = ({ node }) => {
const projectData = useRecoilValue(projectDataState);

const dataRef = node.data.data;
Expand Down

0 comments on commit 41b9e39

Please sign in to comment.