Просмотр исходного кода

Mark defaultValue as optional for useScopeValueSetterOnly (#5695)

GitOrigin-RevId: e42cc48f3762e1a0369fe80ab1b9d7ccb237b3f1
Alf Eaton 4 лет назад
Родитель
Сommit
ed825e3170

+ 1 - 1
services/web/frontend/js/shared/hooks/use-scope-value-setter-only.js

@@ -12,7 +12,7 @@ import _ from 'lodash'
  * the option of passing a function to the setter.
  *
  * @param {string} path - dot '.' path of a property in the Angular scope.
- * @param {any} defaultValue
+ * @param {any} [defaultValue]
  * @returns {[any, function]} - value and setter function tuple.
  */
 export default function useScopeValueSetterOnly(path, defaultValue) {