Skip to content

Commit

Permalink
Merge pull request #38 from newrelic/fix/error-on-first-save
Browse files Browse the repository at this point in the history
fix: fix missing parens around reportIndex check
  • Loading branch information
sdewitt-newrelic authored Apr 11, 2024
2 parents fc16709 + 636a184 commit 24a4213
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nr-reports-builder-nerdpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nr-reports-builder",
"version": "3.0.3",
"version": "3.0.4",
"author": "[email protected]",
"description": "Nerdpack for building scheduled reports.",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ export default function useManifestWriter() {
update = useCallback((report, reportIndex = -1) => {
if (
reportIndex >= 0 &&
!metaManifest || reportIndex >= metaManifest.reports.length
(
!metaManifest ||
reportIndex >= metaManifest.reports.length
)
) {
throw new Error(`Invalid report index ${reportIndex} found during update`)
}
Expand Down
2 changes: 1 addition & 1 deletion nr-reports-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nr-reports-cli",
"version": "3.0.3",
"version": "3.0.4",
"author": "[email protected]",
"description": "The New Relic Reports CLI runner.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion nr-reports-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nr-reports-core",
"version": "3.0.3",
"version": "3.0.4",
"author": "[email protected]",
"description": "The New Relic Reports core engine.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion nr-reports-lambda/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nr-reports-lambda",
"version": "3.0.3",
"version": "3.0.4",
"author": "[email protected]",
"description": "The New Relic Reports lambda runner.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion nr-reports-scheduler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nr-reports-scheduler",
"version": "3.0.3",
"version": "3.0.4",
"author": "[email protected]",
"description": "Scheduler module for syncing and running scheduled reports.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nr-reports",
"version": "3.0.3",
"version": "3.0.4",
"author": "[email protected]",
"description": "New Relic Reports is a report generation and automation framework for New Relic.",
"license": "Apache-2.0",
Expand Down

0 comments on commit 24a4213

Please sign in to comment.