@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.cjs CHANGED
@@ -4907,8 +4907,11 @@ function CrowWidget({
4907
4907
  wasLoadingRef.current = chat.isLoading;
4908
4908
  }, [chat.isLoading, chat.messages]);
4909
4909
  React3.useEffect(() => {
4910
- if (!isOnboarding && initialSuggestions.length > 0 && chat.suggestedActions.length === 0) {
4911
- chat.setSuggestedActions(initialSuggestions);
4910
+ if (!isOnboarding && initialSuggestions.length > 0) {
4911
+ defaultSuggestedActionsRef.current = initialSuggestions;
4912
+ if (chat.suggestedActions.length === 0) {
4913
+ chat.setSuggestedActions(initialSuggestions);
4914
+ }
4912
4915
  }
4913
4916
  }, [initialSuggestions, isOnboarding]);
4914
4917
  React3.useEffect(() => {