mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
🔧 Use positional arguments in the Condition class
This commit is contained in:
parent
c167e9c889
commit
f24799f473
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ export default class Condition {
|
|||
* @param content - The content of the Condition.
|
||||
* @param id - The id of the Condition on the backend, or null if the Condition hasn't been committed yet.
|
||||
*/
|
||||
constructor({type, content, id = null}) {
|
||||
constructor(type, content, id = null) {
|
||||
if(isString(type)) {
|
||||
this.type = typeEnums[type.toUpperCase()]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue