mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
Fix arguments order in getStoredValue functions
commit_hash:2506fd0f0e668ab5c9fa6dce18d0d4c17de2a8b1
This commit is contained in:
+2
-2
@@ -267,7 +267,7 @@ internal abstract class GetStoredValue<T: Any>: Function() {
|
||||
override val isPure = false
|
||||
|
||||
protected open val hasScope: Boolean = false
|
||||
protected val fallbackIndex = if (hasScope) 2 else 1
|
||||
protected val fallbackIndex get() = if (hasScope) 2 else 1
|
||||
|
||||
override fun evaluate(
|
||||
evaluationContext: EvaluationContext,
|
||||
@@ -281,7 +281,7 @@ internal abstract class GetStoredValue<T: Any>: Function() {
|
||||
return evaluationContext.storedValueProvider.get(storedValueName).convert(fallback)
|
||||
}
|
||||
|
||||
val scope = args[2] as String
|
||||
val scope = args[1] as String
|
||||
return evaluationContext.storedValueProvider.get(storedValueName, scope).convert(fallback)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user