Skip to content
Snippets Groups Projects
Unverified Commit 45e2eccb authored by Huu Le (Lee)'s avatar Huu Le (Lee) Committed by GitHub
Browse files

add filter for copy data files (#25)

parent b38adf89
No related branches found
Tags v0.3.6
No related merge requests found
...@@ -138,7 +138,10 @@ export const installTemplate = async ( ...@@ -138,7 +138,10 @@ export const installTemplate = async (
if (props.dataSources.length > 0) { if (props.dataSources.length > 0) {
console.log("\nGenerating context data...\n"); console.log("\nGenerating context data...\n");
await copyContextData(props.root, props.dataSources); await copyContextData(
props.root,
props.dataSources.filter((ds) => ds.type === "file"),
);
if ( if (
props.postInstallAction === "runApp" || props.postInstallAction === "runApp" ||
props.postInstallAction === "dependencies" props.postInstallAction === "dependencies"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment