mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Eslint prefer-const (#17864)
* adds prefer-const to eslint config and runs fixer * reverts unintended change
This commit is contained in:
		| @@ -19,7 +19,7 @@ import { getStatementFields, getRoleFields } from '../utils/database-helpers'; | ||||
| export default class DatabaseRoleSettingForm extends Component { | ||||
|   get settingFields() { | ||||
|     if (!this.args.roleType) return null; | ||||
|     let dbValidFields = getRoleFields(this.args.roleType); | ||||
|     const dbValidFields = getRoleFields(this.args.roleType); | ||||
|     return this.args.attrs.filter((a) => { | ||||
|       return dbValidFields.includes(a.name); | ||||
|     }); | ||||
| @@ -29,7 +29,7 @@ export default class DatabaseRoleSettingForm extends Component { | ||||
|     const type = this.args.roleType; | ||||
|     const plugin = this.args.dbType; | ||||
|     if (!type) return null; | ||||
|     let dbValidFields = getStatementFields(type, plugin); | ||||
|     const dbValidFields = getStatementFields(type, plugin); | ||||
|     return this.args.attrs.filter((a) => { | ||||
|       return dbValidFields.includes(a.name); | ||||
|     }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jordan Reimer
					Jordan Reimer