ok so i changed what i had to this:
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'menu' => '',
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => '',
'menu_class' => 'nav navbar-nav',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s',
'depth' => 0,
'walker' => new wp_bootstrap_navwalker())
);
?>
which seems to work, the dropdown works great for child menu items, but it doesnt render grand child menu items.
heres the menu structure for the above:
Menu Item 1
-Child Menu Item 1.1
–Grand Child Menu Item 1.2