@Override
    public void link() {
        String queryId = getTableComponentSettings().getQueryId();
        queryId = getDashboardContext().getComponents().validateOrGetLastComponentId(queryId,
                QueryPresenter.TYPE.getId());
        setSettings(getTableComponentSettings().copy().queryId(queryId).build());
        setQueryId(queryId);
    }
Fix for old rules that contained duplicate rule ids.

@param rules The rule list to fix.
stroom-core-client/src/main/java/stroom/dashboard/client/table/TablePresenter.java