diff --git a/change/react-native-windows-9cdf1061-38a3-4f07-b1ec-7da0c4f3fcd5.json b/change/react-native-windows-9cdf1061-38a3-4f07-b1ec-7da0c4f3fcd5.json deleted file mode 100644 index b39740e0dd4..00000000000 --- a/change/react-native-windows-9cdf1061-38a3-4f07-b1ec-7da0c4f3fcd5.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "none", - "comment": "Fix watson bug", - "packageName": "react-native-windows", - "email": "hmalothu@microsoft.com", - "dependentChangeType": "none" -} diff --git a/vnext/Microsoft.ReactNative/ABIViewManager.cpp b/vnext/Microsoft.ReactNative/ABIViewManager.cpp index 686075b20fd..fcf8172894b 100644 --- a/vnext/Microsoft.ReactNative/ABIViewManager.cpp +++ b/vnext/Microsoft.ReactNative/ABIViewManager.cpp @@ -190,18 +190,8 @@ void ABIViewManager::AddView(const xaml::DependencyObject &parent, const xaml::D } void ABIViewManager::RemoveAllChildren(const xaml::DependencyObject &parent) { - if (!parent) { - return; - } - if (m_viewManagerWithChildren) { - if (auto fe = parent.try_as()) { - try { - m_viewManagerWithChildren.RemoveAllChildren(fe); - } catch (...) { - // External view manager may fail during shutdown if view is already disposed - } - } + m_viewManagerWithChildren.RemoveAllChildren(parent.as()); } else { Super::RemoveAllChildren(parent); }