Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 712dc8b

Browse files
authored
ensure setCurrent set on new models names (#1215)
1 parent 0cd282c commit 712dc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/composer-playground/src/app/editor/editor.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class EditorComponent implements OnInit, OnDestroy {
133133
}
134134

135135
setCurrentFile(file) {
136-
if (this.currentFile === null || this.currentFile.id !== file.id || file.readme) {
136+
if (this.currentFile === null || this.currentFile.id !== file.id || this.currentFile.displayID !== file.displayID || file.readme) {
137137
if (this.editingPackage) {
138138
this.updatePackageInfo();
139139
this.editingPackage = false;

0 commit comments

Comments
 (0)