We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cbc6a2 + 3722d65 commit b1044f1Copy full SHA for b1044f1
src/Ember/Server/index.ts
@@ -122,7 +122,12 @@ export class EmberServer extends EventEmitter<EmberServerEvents> {
122
const data = berEncode([el], RootType.Elements)
123
let elPath = el.path
124
if (el.contents.type !== ElementType.Node && !('targets' in update || 'sources' in update)) {
125
- elPath = elPath.slice(0, -2) // remove the last element number
+ const lastDotIndex = elPath.lastIndexOf('.')
126
+ if (lastDotIndex > -1) {
127
+ elPath = elPath.slice(0, lastDotIndex)
128
+ } else {
129
+ elPath = ''
130
+ }
131
}
132
133
for (const [path, clients] of Object.entries<S101Socket[]>(this._subscriptions)) {
0 commit comments