Skip to content

Commit ec49d61

Browse files
committed
fixed #350
1 parent 8fe0a5c commit ec49d61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

marklogic-data-hub/src/main/resources/ml-modules/services/scaffold-content.xqy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare function service:comment-sjs($comment-text as xs:string*)
5050

5151
declare function service:kebob-case($str as xs:string)
5252
{
53-
fn:lower-case(fn:replace($str, "([A-Z])", "-$1"))
53+
fn:lower-case(fn:replace(fn:replace($str, "([A-Z])", "-$1"), "^-", ""))
5454
};
5555

5656
declare function service:camel-case($str as xs:string)

quick-start/src/main/ui/app/flows/flows.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export class FlowsComponent implements OnInit, OnDestroy {
290290
}
291291

292292
isActivePlugin(flow: Flow, plugin: Plugin): boolean {
293-
return this.flow.flowName === flow.flowName &&
293+
return this.flow && this.flow.flowName === flow.flowName &&
294294
this.flowPlugin &&
295295
this.flowPlugin.pluginType === plugin.pluginType;
296296
}

0 commit comments

Comments
 (0)