mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
fix(alias): remove default for primary
To make the create method more consistent with the guidelines, this commit removes the default value from the `primary` parameter. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
9258863dbd
commit
01b53d3858
3 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,7 @@ export class AliasService {
|
|||
// the first alias is automatically made the primary alias
|
||||
newAlias = Alias.create(alias, note, true);
|
||||
} else {
|
||||
newAlias = Alias.create(alias, note);
|
||||
newAlias = Alias.create(alias, note, false);
|
||||
}
|
||||
note.aliases.push(newAlias as Alias);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue