Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Oct 21, 2023
1 parent b438f65 commit a6feba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/class-workbook.R
Expand Up @@ -1517,7 +1517,7 @@ wbWorkbook <- R6::R6Class(
fields <- xml_node(self$pivotDefinitions[pt], "pivotCacheDefinition", "cacheFields", "cacheField")
names(fields) <- vapply(xml_attr(fields, "cacheField"), function(x) x[["name"]], "")

if (is.na(xml_attr(fields["vs"], "cacheField", "sharedItems")[[1]]["count"])) {
if (is.na(xml_attr(fields[slicer], "cacheField", "sharedItems")[[1]]["count"])) {
stop("slicer was not initialized in pivot table!")
}

Expand Down

0 comments on commit a6feba0

Please sign in to comment.