From d57ecbb1613b37c2b2363264386d55b500412c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Sun, 19 Nov 2023 21:23:32 +0100 Subject: [PATCH] fixup! AppendableDataPager: make it work in automatic mode --- .../Javascript/JavascriptTranslatableMethodCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs b/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs index 73b736bc60..d43105fe6e 100644 --- a/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs +++ b/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs @@ -823,7 +823,7 @@ private void AddDataSetOptionsTranslations() // _dataPager.Load() AddMethodTranslator(() => default(DataPagerApi)!.Load(), new GenericMethodCompiler(args => - dataSetHelper.Member("loadNextPage").Invoke().WithAnnotation(new ResultIsPromiseAnnotation(e => e)))); + dataSetHelper.Clone().Member("loadNextPage").Invoke().WithAnnotation(new ResultIsPromiseAnnotation(e => e)))); // PagingOptions AddMethodTranslator(() => default(PagingOptions)!.GoToFirstPage(),new GenericMethodCompiler(args =>