Fix syncLocalData to deal with pre-rendered panels