@usecrow/ui 0.1.78 → 0.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4880,8 +4880,11 @@ function CrowWidget({
4880
4880
  wasLoadingRef.current = chat.isLoading;
4881
4881
  }, [chat.isLoading, chat.messages]);
4882
4882
  useEffect(() => {
4883
- if (!isOnboarding && initialSuggestions.length > 0 && chat.suggestedActions.length === 0) {
4884
- chat.setSuggestedActions(initialSuggestions);
4883
+ if (!isOnboarding && initialSuggestions.length > 0) {
4884
+ defaultSuggestedActionsRef.current = initialSuggestions;
4885
+ if (chat.suggestedActions.length === 0) {
4886
+ chat.setSuggestedActions(initialSuggestions);
4887
+ }
4885
4888
  }
4886
4889
  }, [initialSuggestions, isOnboarding]);
4887
4890
  useEffect(() => {