Skip to content

Commit

Permalink
chore: test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Jan 31, 2025
1 parent 50042a5 commit dee1077
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export class TemplateParser extends DefaultParser {
}
if (row.name?.endsWith("_collection") || row.name?.includes("_collection_")) {
if (row.value && typeof row.value === "string") {
row.value = parseAppDataCollectionString(row.value);
// TODO - verify if case used and whether it might be better to use a different
// column to store parsed object literal in value (would require type defs update)
row.value = parseAppDataCollectionString(row.value) as any;
}
}
}
Expand Down Expand Up @@ -164,7 +166,7 @@ export class TemplateParser extends DefaultParser {
switch (row.type) {
// template row name assigned to target template name
case "template":
return row.value;
return row.value as string;
// default use combination of row type and row number
default:
return `${row.type}_${rowNumber}`;
Expand Down

0 comments on commit dee1077

Please sign in to comment.