Skip to content

Commit

Permalink
protect from missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
timbl committed Feb 2, 2023
1 parent 4e74ac4 commit 650d7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/outline/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default function (context) {

// check the IPR on the data. Ok if there is any checked license which is one the document has.
if (statement && statement.why) {
if (licenseOptions && licenseOptions.checklicense()) {
if (licenseOptions && licenseOptions.checklicense && licenseOptions.checklicense()) {
theClass += ' licOkay' // flag as light green etc .licOkay {background-color: #dfd}
}
}
Expand Down

0 comments on commit 650d7a4

Please sign in to comment.