Skip to content

Commit

Permalink
feat(pci.private-registry): fix rebase
Browse files Browse the repository at this point in the history
ref: TAPC-2320
Signed-off-by: Pierre-Philippe <[email protected]>
  • Loading branch information
Pierre-Philippe committed Jan 17, 2025
1 parent 81e4376 commit 303282d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,14 @@ const DatagridProvider = <TData extends DatagridAction[]>({
totalRows,
}: DatagridProviderProps<TData>) => {
const [draftedData, setDraftedData] = useState(data);
const [isUpdating, setIsUpdating] = useState(false);

const initialData = useRef(data);

useEffect(() => {
setDraftedData(data);
}, [data]);

const { reset } = useFormContext();
const isAllDataSelected = useMemo(
() =>
draftedData
Expand Down

0 comments on commit 303282d

Please sign in to comment.