mayurnewase commented on code in PR #21549: URL: https://github.com/apache/superset/pull/21549#discussion_r979135743
########## superset-frontend/src/dashboard/components/PropertiesModal/index.tsx: ########## @@ -123,23 +123,35 @@ const PropertiesModal = ({ }; const loadAccessOptions = useCallback( - (accessType = 'owners', input = '', page: number, pageSize: number) => { + ( + accessType = 'owners', + input = '', + checkActive: boolean = true, + page: number, + pageSize: number, + ) => { const query = rison.encode({ filter: input, page, page_size: pageSize, }); return SupersetClient.get({ endpoint: `/api/v1/dashboard/related/${accessType}?q=${query}`, - }).then(response => ({ - data: response.json.result - .filter((item: { extra: { active: boolean } }) => item.extra.active) Review Comment: sure, ok. will update it in a bit. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org