Skip to content

Commit

Permalink
Remove console log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Feb 19, 2024
1 parent 970b632 commit 2de64fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 5 additions & 4 deletions apps/smart-forms-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import svgr from 'vite-plugin-svgr';
export default defineConfig({
plugins: [react(), svgr()],
optimizeDeps: {
include: ['@aehrc/sdc-assemble', '@aehrc/sdc-populate']
include: ['@aehrc/sdc-assemble']
},
build: {
commonjsOptions: {
include: [/node_modules/, '@aehrc/sdc-assemble', '@aehrc/sdc-populate']
include: [/node_modules/, '@aehrc/sdc-assemble']
}
},
resolve: { preserveSymlinks: true }
}

// resolve: { preserveSymlinks: true }
});
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ function BaseRenderer() {
const updateRequiredValidity = useQuestionnaireResponseStore.use.validateQuestionnaire();
const updateResponse = useQuestionnaireResponseStore.use.updateResponse();

const invalidItems = useQuestionnaireResponseStore.use.invalidItems();
const responseIsValid = useQuestionnaireResponseStore.use.responseIsValid();

const qItemsIndexMap = useMemo(() => mapQItemsIndex(sourceQuestionnaire), [sourceQuestionnaire]);

function handleTopLevelQRItemSingleChange(newTopLevelQRItem: QuestionnaireResponseItem) {
Expand Down Expand Up @@ -76,9 +73,6 @@ function BaseRenderer() {
// If an item has multiple answers, it is a repeat group
const topLevelQRItemsByIndex = getQrItemsIndex(topLevelQItems, topLevelQRItems, qItemsIndexMap);

console.log(invalidItems);
console.log(responseIsValid);

return (
<Fade in={true} timeout={500}>
<Container maxWidth="xl">
Expand Down

0 comments on commit 2de64fd

Please sign in to comment.