fix(web-console): get rid of autocomplete duplicates #268
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When QuestDB instance is down and then restarted, clicking the "Refresh" icon on the
Tables
menu bar will result in getting duplicates (or, in some cases, triplicates) of autocomplete suggestions.Steps to replicate and test the correct behavior:
Tables
menu bar.main
).Screenshot of the issue:
![Screenshot 2024-03-13 at 14 36 04](https://private-user-images.githubusercontent.com/1871646/312511831-a88fc728-6a66-4092-9c4b-69e3c56702bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDE0MzUsIm5iZiI6MTczOTIwMTEzNSwicGF0aCI6Ii8xODcxNjQ2LzMxMjUxMTgzMS1hODhmYzcyOC02YTY2LTQwOTItOWM0Yi02OWUzYzU2NzAyYmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMTUyNTM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODMwODAyMDk2MjdkMDQ3MzQzNmNiY2JiZGM1M2JhYzIwZGU4MzQ5MGUyOWM0Njk5ZGZhMGJlM2EyOGI5NWE2OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.nD-WkUDpc2ZBHJbv26wp3ekebYmXmXyv3o5mXfujs3Y)