Because when we do `show tables;`, in typescript the return data is like below ``` [ { "Tables_from_db": "tab1" }, { "Tables_from_db": "tab2" } ] ``` But in your code you are mapping `.name` so its showing nulls in the final array.
Because when we do
show tables;, in typescript the return data is like belowBut in your code you are mapping
.nameso its showing nulls in the final array.