Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactiveTable.publish not return Expected data to client side #462

Open
Akhileshkumarr opened this issue Apr 28, 2017 · 0 comments
Open

Comments

@Akhileshkumarr
Copy link

Akhileshkumarr commented Apr 28, 2017

I want to return a collection having tracking number with trackingNumber.substr(0, 2); , if i 'console' this on server side it gives as expected result but if i returned then in client side return value is not coming as expected (trackingNumber.substr(0, 2)) , it returns without any changes (just as trackingNumber)
ReactiveTable.publish(
"OverallPackages", Packages, function() {
let packages = Packages.find({ trackingNumber : '7208457174' }).fetch();
packages.map((obj) => {
obj.trackingNumber = obj.trackingNumber.substr(0, 2);
console.log(obj); // result as expected (72)
return obj; // not return as expected (7208457174)
});
@here client side subscibe is--
return {
rowsPerPage: 20,
showColumnToggles: true,
showRowCount:true,
showFilter:true,
collection:"OverallPackages"}
Any idea to troubleshoot this ? help please
thanx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant