Skip to content

Commit

Permalink
Remove mutli source encoding cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Sep 18, 2023
1 parent 7163616 commit 0d87403
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extension/src/plots/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export class PlotsModel extends ModelWithPersistence {
await Promise.all([
collectData(output),
collectTemplates(output),
collectMultiSourceVariations(output, this.multiSourceVariations)
collectMultiSourceVariations(output)
])

this.comparisonData = {
Expand Down
8 changes: 4 additions & 4 deletions extension/src/plots/multiSource/collect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ const collectPathMultiSourceVariations = (
}
}

export const collectMultiSourceVariations = (
output: PlotsOutput,
acc: Record<string, Record<string, unknown>[]>
) => {
export const collectMultiSourceVariations = (output: PlotsOutput) => {
const acc: Record<string, Record<string, unknown>[]> = {}
const { data } = output
for (const [path, plots] of Object.entries(data)) {
collectPathMultiSourceVariations(acc, path, plots)
Expand Down Expand Up @@ -275,6 +273,8 @@ const collectUnmergedShapeEncoding = (
}
}

// this is how we can collect the encoding for multi-source plots
// we need to pass in the anchors that we want to fill as well
const collectPathMultiSourceEncoding = (
acc: MultiSourceEncoding,
path: string,
Expand Down

0 comments on commit 0d87403

Please sign in to comment.